3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'baz'; protected $baz = 'bar'; public function modify(){ $this->bar = 'bar'; $this->baz = 'baz'; } public function peek($target){ print 'Bar: '.$target->bar; print "\n".'Baz: '.$target->baz; } } $first = new Foo(); $second = new Foo(); $first->modify(); $second->peek($first);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0150.00018.37
8.3.50.0120.00721.99
8.3.40.0120.00318.87
8.3.30.0140.00319.04
8.3.20.0030.00520.16
8.3.10.0060.00320.57
8.3.00.0100.00319.38
8.2.180.0180.00316.63
8.2.170.0100.00322.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00822.21
8.2.110.0070.01022.25
8.2.100.0090.00317.78
8.2.90.0000.00718.98
8.2.80.0030.00617.97
8.2.70.0050.00317.62
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0000.00719.13
8.2.20.0030.00617.56
8.2.10.0040.00417.94
8.2.00.0030.00617.66
8.1.280.0070.00725.92
8.1.270.0050.00323.73
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00623.86
8.1.230.0110.00019.07
8.1.220.0000.00817.75
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00718.53
8.1.160.0000.00721.95
8.1.150.0040.00418.82
8.1.140.0070.00017.30
8.1.130.0070.00017.83
8.1.120.0030.00517.43
8.1.110.0000.00817.36
8.1.100.0030.00317.44
8.1.90.0030.00617.46
8.1.80.0040.00417.38
8.1.70.0040.00417.32
8.1.60.0030.00617.52
8.1.50.0030.00517.49
8.1.40.0060.00317.57
8.1.30.0040.00417.50
8.1.20.0000.00917.57
8.1.10.0000.00817.45
8.1.00.0000.01017.54
8.0.300.0090.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0030.00317.16
8.0.260.0000.00717.18
8.0.250.0000.00716.95
8.0.240.0040.00416.83
8.0.230.0070.00017.01
8.0.220.0070.00016.88
8.0.210.0000.00716.96
8.0.200.0000.00616.95
8.0.190.0040.00417.00
8.0.180.0000.00816.85
8.0.170.0000.00716.98
8.0.160.0000.00716.82
8.0.150.0040.00316.89
8.0.140.0080.00016.91
8.0.130.0030.00313.34
8.0.120.0040.00416.87
8.0.110.0070.00016.81
8.0.100.0030.00516.71
8.0.90.0050.00216.69
8.0.80.0130.00716.71
8.0.70.0000.00816.75
8.0.60.0000.00716.88
8.0.50.0000.00716.84
8.0.30.0100.00917.17
8.0.20.0080.01117.40
8.0.10.0080.00016.78
8.0.00.0070.01116.75
7.4.330.0030.00315.00
7.4.320.0060.00016.44
7.4.300.0030.00316.54
7.4.290.0030.00316.54
7.4.280.0000.00616.35
7.4.270.0040.00416.56
7.4.260.0000.00716.41
7.4.250.0000.00716.56
7.4.240.0020.00516.55
7.4.230.0030.00316.55
7.4.220.0070.01316.70
7.4.210.0100.00316.43
7.4.200.0000.00716.25
7.4.160.0110.00716.38
7.4.150.0130.00717.40
7.4.140.0090.00917.86
7.4.130.0080.00816.48
7.4.120.0100.00716.49
7.4.110.0130.01016.55
7.4.100.0100.00716.66
7.4.90.0140.00316.53
7.4.80.0150.00619.37
7.4.70.0070.01016.40
7.4.60.0070.01016.44
7.4.50.0000.00816.48
7.4.40.0030.01616.61
7.4.30.0090.01816.55
7.4.00.0040.01114.59
7.3.330.0050.00013.21
7.3.320.0030.00313.23
7.3.310.0040.00416.37
7.3.300.0070.00016.17
7.3.290.0120.00616.38
7.3.280.0040.01116.32
7.3.270.0120.00617.40
7.3.260.0080.01416.54
7.3.250.0140.00416.40
7.3.240.0100.00716.61
7.3.230.0040.01216.45
7.3.210.0120.00616.42
7.3.200.0060.01619.39
7.3.190.0090.00916.22
7.3.180.0060.01016.45
7.3.170.0030.01316.46
7.3.160.0080.00916.49
7.2.330.0080.00816.43
7.2.320.0070.01016.40
7.2.310.0100.01016.77
7.2.300.0130.00316.34
7.2.290.0070.01016.49
7.2.00.0060.01219.45
7.1.100.0000.01118.49
7.1.70.0000.01116.93
7.1.60.0150.00919.32
7.1.50.0100.01317.02
7.1.00.0070.07322.57
7.0.200.0030.00616.70
7.0.140.0070.07022.07
7.0.60.0030.07719.91
7.0.50.0030.04017.97
7.0.40.0070.04720.10
7.0.30.0230.04320.20
7.0.20.0300.07720.30
7.0.10.0070.05320.34
7.0.00.0100.04020.33
5.6.210.0100.03320.48
5.6.200.0100.07718.18
5.6.190.0030.04720.39
5.6.180.0470.05320.67
5.6.170.0330.07020.41
5.6.160.0070.04720.57
5.6.150.0130.07018.21
5.6.140.0070.03718.19
5.6.130.0100.07718.15
5.6.120.0100.04720.96
5.6.110.0070.08020.99
5.6.100.0100.08720.98
5.6.90.0200.06721.12
5.6.80.0070.08020.51
5.5.350.0230.07720.34
5.5.340.0100.03317.98
5.5.330.0030.04320.40
5.5.320.0370.06720.42
5.5.310.0100.04720.34
5.5.300.0070.03717.92
5.5.290.0070.08017.99
5.5.280.0070.09020.69
5.5.270.0100.08720.89
5.5.260.0170.07320.87
5.5.250.0100.07720.62
5.5.240.2730.04320.36
5.4.450.1230.04319.55
5.4.440.0170.05719.34
5.4.430.0130.05719.59
5.4.420.0700.00019.42
5.4.410.0630.00019.35
5.4.400.0600.00019.02
5.4.390.0630.00019.27
5.4.380.0430.06018.71
5.4.370.0500.07018.74
5.4.360.0200.05718.63
5.4.350.0230.06318.73
5.4.340.0330.08018.48
5.4.320.0100.03812.50
5.4.310.0080.03612.50
5.4.300.0040.03812.50
5.4.290.0030.04012.50
5.4.280.0050.03612.40
5.4.270.0060.03712.40
5.4.260.0080.03512.40
5.4.250.0050.03812.40
5.4.240.0080.03412.40
5.4.230.0080.03612.39
5.4.220.0060.03512.39
5.4.210.0050.03712.39
5.4.200.0030.04212.39
5.4.190.0050.03612.39
5.4.180.0070.03612.39
5.4.170.0030.03912.39
5.4.160.0050.03612.39
5.4.150.0110.03612.39
5.4.140.0070.03512.07
5.4.130.0040.04212.06
5.4.120.0130.04212.02
5.4.110.0070.04012.02
5.4.100.0050.05612.01
5.4.90.0080.04312.01
5.4.80.0050.03812.02
5.4.70.0090.03412.01
5.4.60.0050.03612.02
5.4.50.0070.03512.02
5.4.40.0090.04212.00
5.4.30.0050.03612.00
5.4.20.0030.03812.00
5.4.10.0060.03512.00
5.4.00.0080.03411.49
5.3.290.0060.03912.80
5.3.280.0070.03712.71
5.3.270.0060.03912.72
5.3.260.0100.03912.72
5.3.250.0100.03612.72
5.3.240.0100.04712.72
5.3.230.0060.03812.71
5.3.220.0100.04212.68
5.3.210.0100.03912.68
5.3.200.0100.03812.68
5.3.190.0040.03912.68
5.3.180.0050.03612.68
5.3.170.0030.03912.67
5.3.160.0060.03512.67
5.3.150.0070.04512.67
5.3.140.0140.04012.66
5.3.130.0060.04512.65
5.3.120.0050.04412.66
5.3.110.0100.04612.66
5.3.100.0060.03612.12
5.3.90.0060.03612.11
5.3.80.0070.04112.09
5.3.70.0080.04512.09
5.3.60.0050.03712.08
5.3.50.0040.03812.03
5.3.40.0060.03612.03
5.3.30.0030.03811.98
5.3.20.0050.03711.77
5.3.10.0030.03611.73
5.3.00.0070.04511.71
5.2.170.0070.0359.23
5.2.160.0040.0299.22
5.2.150.0040.0319.23
5.2.140.0040.0309.22
5.2.130.0080.0339.18
5.2.120.0060.0269.18
5.2.110.0050.0299.19
5.2.100.0090.0359.19
5.2.90.0040.0299.18
5.2.80.0040.0429.18
5.2.70.0040.0329.18
5.2.60.0050.0349.13
5.2.50.0080.0369.10
5.2.40.0040.0299.08
5.2.30.0030.0319.05
5.2.20.0020.0319.04
5.2.10.0060.0268.95
5.2.00.0020.0328.81
5.1.60.0040.0318.09
5.1.50.0030.0268.09
5.1.40.0030.0268.07
5.1.30.0050.0358.42
5.1.20.0070.0318.44
5.1.10.0020.0278.17
5.1.00.0060.0248.16
5.0.50.0080.0276.65
5.0.40.0030.0216.50
5.0.30.0050.0296.32
5.0.20.0040.0186.29
5.0.10.0020.0206.26
5.0.00.0030.0306.25
4.4.90.0020.0234.78
4.4.80.0040.0244.76
4.4.70.0030.0214.76
4.4.60.0040.0184.75
4.4.50.0020.0154.77
4.4.40.0040.0294.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0010.0274.85
4.4.00.0050.0294.76
4.3.110.0000.0264.67
4.3.100.0020.0154.67
4.3.90.0020.0214.63
4.3.80.0040.0224.58
4.3.70.0030.0134.63
4.3.60.0040.0244.63
4.3.50.0030.0234.63
4.3.40.0020.0294.54
4.3.30.0010.0213.30
4.3.20.0020.0273.28
4.3.10.0030.0143.23
4.3.00.0100.0107.43

preferences:
35.54 ms | 401 KiB | 5 Q