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 '<br>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.0090.00618.06
8.3.50.0090.01121.98
8.3.40.0040.01118.96
8.3.30.0030.01019.09
8.3.20.0040.00420.25
8.3.10.0060.00320.53
8.3.00.0090.00619.00
8.2.180.0170.00316.38
8.2.170.0110.00322.96
8.2.160.0080.00620.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0080.00022.21
8.2.110.0070.00321.05
8.2.100.0030.00717.72
8.2.90.0040.00417.84
8.2.80.0000.00817.97
8.2.70.0060.00317.49
8.2.60.0030.00618.03
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0000.00719.13
8.2.20.0030.00517.75
8.2.10.0000.00817.98
8.2.00.0000.00917.61
8.1.280.0070.00725.92
8.1.270.0040.00423.87
8.1.260.0050.00326.35
8.1.250.0070.00728.09
8.1.240.0080.00022.61
8.1.230.0000.01020.95
8.1.220.0000.00817.74
8.1.210.0040.00418.89
8.1.200.0070.00417.23
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0060.00318.52
8.1.160.0050.00221.96
8.1.150.0040.00418.76
8.1.140.0040.00417.38
8.1.130.0000.00717.91
8.1.120.0080.00017.27
8.1.110.0000.00817.44
8.1.100.0000.00717.29
8.1.90.0000.00817.32
8.1.80.0040.00417.45
8.1.70.0000.00817.27
8.1.60.0090.00017.64
8.1.50.0080.00017.56
8.1.40.0040.00417.42
8.1.30.0050.00317.60
8.1.20.0000.00817.64
8.1.10.0040.00417.54
8.1.00.0080.00417.40
8.0.300.0070.00019.86
8.0.290.0040.00416.63
8.0.280.0050.00318.51
8.0.270.0000.00817.22
8.0.260.0030.00317.27
8.0.250.0030.00316.88
8.0.240.0030.00516.96
8.0.230.0000.00716.86
8.0.220.0070.00016.92
8.0.210.0040.00416.91
8.0.200.0030.00316.86
8.0.190.0040.00416.83
8.0.180.0000.00816.90
8.0.170.0040.00416.82
8.0.160.0030.00316.90
8.0.150.0030.00316.83
8.0.140.0000.00816.87
8.0.130.0050.00013.33
8.0.120.0000.00816.88
8.0.110.0070.00016.79
8.0.100.0000.00716.77
8.0.90.0000.00716.79
8.0.80.0130.00316.71
8.0.70.0050.00216.66
8.0.60.0000.00716.78
8.0.50.0040.00416.73
8.0.30.0090.00917.20
8.0.20.0090.01117.40
8.0.10.0020.00517.00
8.0.00.0030.01416.70
7.4.330.0050.00015.14
7.4.320.0000.00616.49
7.4.300.0000.00616.62
7.4.290.0040.00416.60
7.4.280.0030.00316.55
7.4.270.0030.00316.49
7.4.260.0030.00316.44
7.4.250.0030.00516.57
7.4.240.0020.00516.52
7.4.230.0040.00416.39
7.4.220.0070.01116.62
7.4.210.0030.01116.67
7.4.200.0040.00416.48
7.4.160.0090.00616.57
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0120.00516.59
7.4.120.0110.00916.52
7.4.110.0120.00816.43
7.4.100.0080.00816.55
7.4.90.0170.00016.48
7.4.80.0190.00319.37
7.4.70.0090.00916.51
7.4.60.0100.00616.57
7.4.50.0000.00816.36
7.4.40.0070.01316.38
7.4.30.0150.00716.61
7.4.00.0090.00715.00
7.3.330.0030.00313.14
7.3.320.0050.00013.38
7.3.310.0000.00616.26
7.3.300.0060.00016.35
7.3.290.0080.00716.32
7.3.280.0070.00716.23
7.3.270.0180.00317.40
7.3.260.0080.01516.37
7.3.250.0110.00616.42
7.3.240.0120.00916.31
7.3.230.0120.00416.50
7.3.210.0060.01016.38
7.3.200.0040.01419.39
7.3.190.0090.00916.61
7.3.180.0120.00316.23
7.3.170.0050.01116.27
7.3.160.0030.01316.46
7.3.120.0080.00315.05
7.3.110.0100.01015.00
7.3.100.0130.00314.47
7.3.90.0000.00914.67
7.3.80.0070.00714.76
7.3.70.0100.00014.83
7.3.60.0140.00014.57
7.3.50.0070.01014.54
7.3.40.0030.01414.73
7.3.30.0090.00614.91
7.3.20.0090.00916.80
7.3.10.0080.00316.51
7.3.00.0060.00416.55
7.2.330.0070.01016.80
7.2.320.0130.00616.52
7.2.310.0160.00316.42
7.2.300.0070.01016.66
7.2.290.0070.01016.42
7.2.250.0070.01115.14
7.2.240.0070.01314.96
7.2.230.0040.01115.06
7.2.220.0070.00714.96
7.2.210.0040.01114.66
7.2.200.0030.00715.06
7.2.190.0000.01515.01
7.2.180.0030.01314.96
7.2.170.0070.01015.23
7.2.130.0110.00716.94
7.2.120.0060.00916.67
7.2.110.0100.00016.87
7.2.100.0070.00416.96
7.2.90.0090.00316.92
7.2.80.0030.01016.71
7.2.70.0110.00016.97
7.2.60.0030.00816.88
7.2.50.0110.00416.96
7.2.40.0040.00816.96
7.2.30.0060.00916.80
7.2.20.0000.01516.85
7.2.10.0000.01116.85
7.2.00.0100.00518.27
7.1.330.0060.00915.90
7.1.320.0040.00715.97
7.1.310.0040.01115.95
7.1.300.0100.00015.95
7.1.290.0030.00615.73
7.1.280.0120.00615.83
7.1.270.0060.00915.74
7.1.260.0030.00915.88
7.1.250.0070.01015.86
7.1.100.0000.01218.01
7.1.70.0050.00317.09
7.1.60.0030.02219.32
7.1.50.0030.02016.97
7.1.00.0100.07022.44
7.0.200.0110.00416.79
7.0.140.0000.07722.00
7.0.60.0070.05320.03
7.0.50.0030.07017.95
7.0.40.0030.08720.18
7.0.30.0300.03320.20
7.0.20.0270.06320.30
7.0.10.0100.03720.07
7.0.00.0100.06720.23
5.6.280.0100.07021.05
5.6.210.0100.08020.52
5.6.200.0070.07718.19
5.6.190.0100.07720.52
5.6.180.0500.06720.68
5.6.170.0370.07020.44
5.6.160.0030.04320.51
5.6.150.0100.07318.15
5.6.140.0030.04018.21
5.6.130.0030.04318.28
5.6.120.0070.06020.95
5.6.110.0170.07321.03
5.6.100.0070.04720.96
5.6.90.0070.08021.11
5.6.80.0070.05020.43
5.5.350.0170.06020.31
5.5.340.0000.04318.05
5.5.330.0100.08020.37
5.5.320.0370.06020.36
5.5.310.0170.04720.18
5.5.300.0070.08017.94
5.5.290.0030.07017.96
5.5.280.0030.05020.99
5.5.270.0130.08020.89
5.5.260.0070.08320.95
5.5.250.0100.07720.46
5.5.240.3400.04320.37
5.4.450.1530.03319.46
5.4.440.0400.05719.63
5.4.430.0300.04319.38
5.4.420.0630.00019.63
5.4.410.0600.00019.36
5.4.400.0630.00019.09
5.4.390.0670.00019.24
5.4.380.0370.05018.53
5.4.370.0500.04018.58
5.4.360.0300.04318.75
5.4.350.0300.05318.71
5.4.340.0300.05318.57
5.4.320.0080.04912.51
5.4.310.0110.04612.50
5.4.300.0100.04412.50
5.4.290.0070.03612.50
5.4.280.0070.03412.40
5.4.270.0040.03812.40
5.4.260.0030.04012.39
5.4.250.0070.03812.40
5.4.240.0100.04412.40
5.4.230.0030.04212.39
5.4.220.0090.03312.39
5.4.210.0070.03512.39
5.4.200.0070.03512.39
5.4.190.0050.03612.39
5.4.180.0060.03512.39
5.4.170.0060.03612.40
5.4.160.0040.04012.39
5.4.150.0060.03712.39
5.4.140.0040.04012.07
5.4.130.0080.03512.06
5.4.120.0060.03612.02
5.4.110.0080.03512.02
5.4.100.0050.03712.02
5.4.90.0070.03712.02
5.4.80.0060.03712.02
5.4.70.0090.03112.02
5.4.60.0050.03512.01
5.4.50.0060.03412.02
5.4.40.0080.03712.00
5.4.30.0110.03212.00
5.4.20.0080.04612.00
5.4.10.0070.03311.99
5.4.00.0020.03911.49
5.3.290.0080.03712.80
5.3.280.0120.03212.71
5.3.270.0110.03712.72
5.3.260.0060.03912.72
5.3.250.0030.04012.72
5.3.240.0030.04012.72
5.3.230.0040.04312.71
5.3.220.0060.03712.68
5.3.210.0070.03712.68
5.3.200.0080.03412.68
5.3.190.0060.03812.68
5.3.180.0050.03712.67
5.3.170.0080.03412.67
5.3.160.0060.03712.67
5.3.150.0060.03812.67
5.3.140.0040.03912.66
5.3.130.0060.03912.66
5.3.120.0070.03812.65
5.3.110.0070.03712.66
5.3.100.0080.03412.12
5.3.90.0050.03712.11
5.3.80.0090.03312.09
5.3.70.0050.03712.09
5.3.60.0040.04012.08
5.3.50.0080.03412.03
5.3.40.0050.03612.03
5.3.30.0040.03811.99
5.3.20.0100.03011.77
5.3.10.0080.03311.73
5.3.00.0050.03711.72
5.2.170.0060.0299.23
5.2.160.0050.0289.22
5.2.150.0030.0329.23
5.2.140.0050.0299.22
5.2.130.0030.0309.18
5.2.120.0030.0299.18
5.2.110.0050.0289.19
5.2.100.0050.0279.18
5.2.90.0040.0309.19
5.2.80.0060.0289.18
5.2.70.0050.0309.18
5.2.60.0070.0279.13
5.2.50.0040.0309.10
5.2.40.0030.0299.07
5.2.30.0030.0319.05
5.2.20.0060.0279.04
5.2.10.0030.0298.94
5.2.00.0050.0288.81
5.1.60.0040.0238.09
5.1.50.0080.0278.09
5.1.40.0040.0258.07
5.1.30.0080.0228.42
5.1.20.0030.0278.45
5.1.10.0050.0248.17
5.1.00.0050.0328.16
5.0.50.0050.0346.65
5.0.40.0030.0256.50
5.0.30.0080.0376.32
5.0.20.0020.0206.29
5.0.10.0060.0286.26
5.0.00.0020.0326.25
4.4.90.0030.0184.78
4.4.80.0030.0234.76
4.4.70.0040.0204.75
4.4.60.0030.0174.76
4.4.50.0020.0164.77
4.4.40.0020.0314.71
4.4.30.0050.0194.76
4.4.20.0020.0164.84
4.4.10.0070.0174.85
4.4.00.0010.0274.76
4.3.110.0030.0224.67
4.3.100.0030.0144.66
4.3.90.0060.0184.63
4.3.80.0020.0304.58
4.3.70.0040.0134.63
4.3.60.0030.0144.62
4.3.50.0050.0144.63
4.3.40.0020.0304.54
4.3.30.0000.0243.30
4.3.20.0030.0143.28
4.3.10.0070.0183.24
4.3.00.0200.0237.45

preferences:
37.45 ms | 401 KiB | 5 Q