3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = new Bar; $foo = new Foo; class Bar { public function __get($x) { global $foo; $foo->asd++; } } class Foo { public function __get($x) { global $bar; $bar->lol++; } } $foo->blah++; var_dump($foo->blah); echo "Done\n";

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.00616.88
8.3.50.0150.00322.14
8.3.40.0110.00418.71
8.3.30.0070.00719.04
8.3.20.0040.00420.02
8.3.10.0080.00023.53
8.3.00.0080.00019.25
8.2.180.0090.00618.66
8.2.170.0090.00622.96
8.2.160.0070.00720.42
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0090.00026.16
8.2.120.0070.00022.25
8.2.110.0070.00321.07
8.2.100.0120.00017.75
8.2.90.0050.00319.13
8.2.80.0000.00817.97
8.2.70.0070.00417.50
8.2.60.0040.00418.05
8.2.50.0050.00518.10
8.2.40.0000.00818.34
8.2.30.0000.00717.99
8.2.20.0040.00417.64
8.2.10.0040.00417.99
8.2.00.0030.00717.61
8.1.280.0080.00625.92
8.1.270.0030.00523.83
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00422.74
8.1.230.0070.00317.89
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.48
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0040.00418.68
8.1.160.0040.00422.02
8.1.150.0040.00418.64
8.1.140.0040.00417.44
8.1.130.0040.00417.79
8.1.120.0000.00717.35
8.1.110.0000.00817.48
8.1.100.0060.00317.28
8.1.90.0000.00717.31
8.1.80.0030.00317.39
8.1.70.0000.00717.34
8.1.60.0000.00717.48
8.1.50.0030.00617.50
8.1.40.0030.00617.57
8.1.30.0000.00817.54
8.1.20.0000.00817.59
8.1.10.0040.00417.44
8.1.00.0040.00417.44
8.0.300.0000.00818.77
8.0.290.0020.00516.63
8.0.280.0060.00318.57
8.0.270.0000.00817.23
8.0.260.0080.00017.29
8.0.250.0040.00416.95
8.0.240.0070.00016.92
8.0.230.0000.00716.98
8.0.220.0070.00016.85
8.0.210.0000.00716.98
8.0.200.0040.00416.96
8.0.190.0040.00416.88
8.0.180.0030.00516.94
8.0.170.0030.00616.88
8.0.160.0070.00316.86
8.0.150.0000.00816.87
8.0.140.0000.00716.83
8.0.130.0060.00013.33
8.0.120.0030.00616.84
8.0.110.0070.00016.87
8.0.100.0040.00416.71
8.0.90.0040.00416.75
8.0.80.0040.01216.85
8.0.70.0070.00016.91
8.0.60.0040.00416.77
8.0.50.0000.00716.95
8.0.30.0070.01117.11
8.0.20.0110.00817.40
8.0.10.0070.00016.86
8.0.00.0120.00616.76
7.4.330.0000.00615.00
7.4.320.0070.00016.58
7.4.300.0030.00316.63
7.4.290.0000.00716.64
7.4.280.0040.00416.49
7.4.270.0000.00716.45
7.4.260.0030.00316.63
7.4.250.0000.00716.42
7.4.240.0030.00316.47
7.4.230.0000.00716.53
7.4.220.0140.01116.68
7.4.210.0080.00716.60
7.4.200.0040.00416.60
7.4.190.0030.00316.55
7.4.160.0060.00916.76
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0050.01216.43
7.4.120.0090.00916.46
7.4.110.0090.00816.34
7.4.100.0050.01416.54
7.4.90.0140.00316.44
7.4.80.0080.01619.39
7.4.70.0100.00716.64
7.4.60.0100.00716.48
7.4.50.0060.00316.62
7.4.40.0030.01322.77
7.4.30.0080.00816.54
7.4.00.0070.01115.11
7.3.330.0000.00613.09
7.3.320.0050.00013.11
7.3.310.0000.00716.31
7.3.300.0030.00316.22
7.3.290.0090.00616.28
7.3.280.0070.00816.29
7.3.270.0040.01317.40
7.3.260.0030.01316.25
7.3.250.0120.00616.39
7.3.240.0110.00716.42
7.3.230.0060.01216.39
7.3.210.0130.00316.49
7.3.200.0110.01119.39
7.3.190.0110.00816.60
7.3.180.0100.01016.44
7.3.170.0090.00816.27
7.3.160.0110.00416.38
7.3.120.0110.00714.77
7.3.110.0070.01114.89
7.3.100.0090.00614.63
7.3.90.0040.01114.52
7.3.80.0070.00714.72
7.3.70.0060.00314.88
7.3.60.0040.01514.41
7.3.50.0060.01214.87
7.3.40.0100.01014.61
7.3.30.0030.01414.81
7.3.20.0060.01016.57
7.3.10.0050.01116.46
7.3.00.0080.00816.50
7.2.330.0090.00916.73
7.2.320.0100.00716.47
7.2.310.0130.01016.75
7.2.300.0090.00816.79
7.2.290.0080.00816.44
7.2.240.0180.00015.28
7.2.230.0090.00315.23
7.2.220.0070.01114.59
7.2.210.0060.01015.36
7.2.200.0060.00315.22
7.2.190.0030.00915.11
7.2.180.0070.01114.97
7.2.170.0120.00314.75
7.2.160.0090.00915.07
7.2.150.0070.00716.52
7.2.140.0000.01717.02
7.2.130.0130.00616.61
7.2.120.0090.00816.57
7.2.110.0120.00716.88
7.2.100.0130.00716.72
7.2.90.0130.00317.01
7.2.80.0110.01416.66
7.2.70.0100.00816.90
7.2.60.0110.01016.79
7.2.50.0130.00816.78
7.2.40.0100.00816.63
7.2.30.0100.00516.56
7.2.20.0110.01116.45
7.2.10.0140.00716.71
7.2.00.0100.01216.80
7.1.330.0070.00715.72
7.1.320.0000.01815.77
7.1.310.0130.00315.60
7.1.300.0070.01015.73
7.1.290.0030.01215.60
7.1.280.0000.01215.84
7.1.270.0090.00615.80
7.1.260.0060.00915.63
7.1.250.0070.00915.44
7.1.200.0030.01015.55
7.1.100.0070.00317.53
7.1.70.0000.00817.09
7.1.60.0000.01319.33
7.1.50.0090.01216.93
7.1.00.0070.07322.46
7.0.200.0040.00416.73
7.0.140.0030.07322.05
7.0.60.0170.07320.00
7.0.50.0130.07317.85
7.0.40.0070.04020.15
7.0.30.0230.05020.25
7.0.20.0230.04020.24
7.0.10.0030.05720.16
7.0.00.0030.04720.30
5.6.280.0000.07720.91
5.6.210.0070.04320.54
5.6.200.0030.05018.23
5.6.190.0100.04720.60
5.6.180.0430.03020.67
5.6.170.0270.07720.44
5.6.160.0070.08320.54
5.6.150.0030.07318.29
5.6.140.0070.07318.14
5.6.130.0070.03718.21
5.6.120.0100.08021.02
5.6.110.0130.07320.98
5.6.100.0070.08720.96
5.6.90.0070.04021.02
5.6.80.0100.03320.39
5.6.70.4130.04020.47
5.5.350.0070.08720.33
5.5.340.0100.07717.96
5.5.330.0030.09020.37
5.5.320.0000.08720.35
5.5.310.0230.09020.32
5.5.300.0070.07718.05
5.5.290.0030.05318.01
5.5.280.0070.08320.85
5.5.270.0230.06020.68
5.5.260.0130.08320.65
5.5.250.0030.08320.69
5.5.240.0170.03020.14
5.4.450.0130.05019.64
5.4.440.0170.05019.50
5.4.430.0170.05019.11
5.4.420.0670.05319.27
5.4.410.0730.05719.02
5.4.400.0870.06018.94
5.4.390.0730.05319.05
5.4.380.0470.06018.55
5.4.370.0170.05318.76
5.4.360.0370.05018.72
5.4.350.0370.05018.54
5.4.340.0270.05018.57
5.4.320.0050.03712.50
5.4.310.0090.03712.50
5.4.300.0070.03712.50
5.4.290.0070.03812.50
5.4.280.0100.04512.37
5.4.270.0050.04212.37
5.4.260.0060.03812.38
5.4.250.0080.05312.37
5.4.240.0100.05212.37
5.4.230.0110.05012.36
5.4.220.0070.04612.36
5.4.210.0080.05112.36
5.4.200.0120.05412.37
5.4.190.0110.04012.36
5.4.180.0150.03712.36
5.4.170.0130.04212.37
5.4.160.0100.04612.36
5.4.150.0110.04112.36
5.4.140.0080.04812.05
5.4.130.0070.04612.04
5.4.120.0070.03611.99
5.4.110.0050.04011.98
5.4.100.0050.03811.99
5.4.90.0080.03611.98
5.4.80.0110.04011.99
5.4.70.0060.04911.98
5.4.60.0110.04511.98
5.4.50.0080.04711.98
5.4.40.0090.04311.97
5.4.30.0070.03911.97
5.4.20.0080.03711.97
5.4.10.0050.04011.97
5.4.00.0050.04011.45
5.3.290.0110.04612.80
5.3.280.0070.03912.71
5.3.270.0070.04212.72
5.3.260.0100.04312.72
5.3.250.0120.04812.72
5.3.240.0140.03612.72
5.3.230.0100.05212.71
5.3.220.0120.05412.68
5.3.210.0120.05612.68
5.3.200.0130.04112.68
5.3.190.0130.05712.68
5.3.180.0160.06012.67
5.3.170.0140.04512.67
5.3.160.0090.04812.67
5.3.150.0130.05012.68
5.3.140.0080.05112.66
5.3.130.0090.05612.66
5.3.120.0130.05012.66
5.3.110.0090.05412.66
5.3.100.0090.03812.12
5.3.90.0080.05112.08
5.3.80.0090.04812.07
5.3.70.0090.04612.08
5.3.60.0060.04312.06
5.3.50.0090.05812.00
5.3.40.0120.05112.00
5.3.30.0060.04811.94
5.3.20.0080.04911.71
5.3.10.0100.04411.66
5.3.00.0100.04911.65
5.2.170.0080.0359.13
5.2.160.0120.0249.14
5.2.150.0070.0339.14
5.2.140.0060.0309.14
5.2.130.0050.0329.10
5.2.120.0080.0289.09
5.2.110.0050.0329.10
5.2.100.0060.0329.10
5.2.90.0090.0339.09
5.2.80.0080.0439.10
5.2.70.0100.0609.09
5.2.60.0090.0449.04
5.2.50.0130.0439.02
5.2.40.0100.0388.98
5.2.30.0080.0428.97
5.2.20.0080.0408.95
5.2.10.0060.0418.86
5.2.00.0070.0408.73
5.1.60.0040.0378.07
5.1.50.0070.0458.07
5.1.40.0090.0358.05
5.1.30.0080.0388.40
5.1.20.0080.0468.42
5.1.10.0060.0478.15
5.1.00.0060.0418.14
5.0.50.0080.0386.63
5.0.40.0030.0336.48
5.0.30.0060.0436.30
5.0.20.0060.0256.27
5.0.10.0030.0306.24
5.0.00.0060.0416.23
4.4.90.0050.0664.78
4.4.80.0060.0414.76
4.4.70.0040.0214.76
4.4.60.0060.0184.76
4.4.50.0040.0164.77
4.4.40.0050.0744.70
4.4.30.0020.0194.76
4.4.20.0040.0214.85
4.4.10.0060.0144.85
4.4.00.0020.0274.75
4.3.110.0030.0174.67
4.3.100.0040.0214.66
4.3.90.0060.0164.63
4.3.80.0050.0244.58
4.3.70.0040.0204.63
4.3.60.0030.0254.63
4.3.50.0030.0234.63
4.3.40.0030.0324.54
4.3.30.0030.0173.28
4.3.20.0000.0193.26
4.3.10.0020.0173.23
4.3.00.0100.01710.37

preferences:
58.94 ms | 400 KiB | 5 Q