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++;

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.0140.00016.63
8.3.50.0130.00821.91
8.3.40.0110.00418.79
8.3.30.0090.00619.09
8.3.20.0040.00420.29
8.3.10.0060.01223.65
8.3.00.0040.00419.25
8.2.180.0070.01116.63
8.2.170.0110.00722.96
8.2.160.0000.01420.20
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0070.01126.16
8.2.120.0040.00422.12
8.2.110.0060.00320.98
8.2.100.0070.00417.91
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0040.00417.48
8.2.60.0050.00917.43
8.2.50.0050.00318.07
8.2.40.0060.00319.95
8.2.30.0030.00619.79
8.2.20.0040.00417.66
8.2.10.0030.00519.95
8.2.00.0070.00317.74
8.1.280.0140.00025.92
8.1.270.0050.00324.01
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0130.00021.90
8.1.230.0070.00420.89
8.1.220.0040.00417.79
8.1.210.0060.00318.80
8.1.200.0060.00317.11
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0040.00418.65
8.1.160.0080.00021.94
8.1.150.0040.00418.56
8.1.140.0050.00317.46
8.1.130.0000.00717.82
8.1.120.0000.00717.46
8.1.110.0000.00717.42
8.1.100.0040.00417.41
8.1.90.0000.00717.37
8.1.80.0040.00417.36
8.1.70.0000.00717.38
8.1.60.0000.00717.59
8.1.50.0030.00517.48
8.1.40.0000.00817.57
8.1.30.0000.00817.65
8.1.20.0040.00417.65
8.1.10.0040.00417.46
8.1.00.0080.00017.43
8.0.300.0070.00020.07
8.0.290.0040.00417.05
8.0.280.0000.00718.45
8.0.270.0000.00817.18
8.0.260.0030.00317.17
8.0.250.0040.00417.00
8.0.240.0000.00717.02
8.0.230.0040.00417.01
8.0.220.0030.00516.93
8.0.210.0050.00216.83
8.0.200.0070.00016.93
8.0.190.0000.00816.93
8.0.180.0000.00716.88
8.0.170.0040.00416.86
8.0.160.0000.00716.93
8.0.150.0030.00316.97
8.0.140.0000.00716.83
8.0.130.0000.00613.33
8.0.120.0040.00416.75
8.0.110.0000.00816.78
8.0.100.0000.00716.93
8.0.90.0040.00416.78
8.0.80.0110.01016.83
8.0.70.0000.00816.79
8.0.60.0070.00016.96
8.0.50.0040.00416.74
8.0.30.0150.00516.97
8.0.20.0040.01517.40
8.0.10.0000.00716.88
8.0.00.0100.00716.92
7.4.330.0000.00515.07
7.4.320.0030.00316.57
7.4.300.0060.00016.50
7.4.290.0070.00016.53
7.4.280.0030.00316.51
7.4.270.0080.00016.49
7.4.260.0070.00016.46
7.4.250.0040.00416.38
7.4.240.0060.00216.55
7.4.230.0070.00016.43
7.4.220.0160.00316.59
7.4.210.0040.01116.59
7.4.200.0070.00016.69
7.4.190.0000.00816.37
7.4.160.0060.00916.51
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0130.00316.55
7.4.120.0090.01216.44
7.4.110.0110.00516.58
7.4.100.0090.00916.41
7.4.90.0030.01316.48
7.4.80.0100.01319.39
7.4.70.0150.00916.54
7.4.60.0100.00616.36
7.4.50.0050.00016.57
7.4.40.0000.01322.77
7.4.30.0090.00916.35
7.4.10.0070.01114.73
7.4.00.0060.01114.85
7.3.330.0000.00713.07
7.3.320.0000.00513.25
7.3.310.0040.00416.36
7.3.300.0030.00316.16
7.3.290.0120.00316.29
7.3.280.0110.00916.28
7.3.270.0110.00717.40
7.3.260.0120.00616.39
7.3.250.0100.01216.47
7.3.240.0100.00716.27
7.3.230.0120.00316.39
7.3.210.0170.00016.36
7.3.200.0070.01119.39
7.3.190.0070.01416.26
7.3.180.0150.00016.31
7.3.170.0060.01316.35
7.3.160.0090.00916.33
7.3.130.0090.00914.47
7.3.120.0070.00714.72
7.3.110.0130.00014.57
7.3.100.0070.00714.63
7.3.90.0000.01214.80
7.3.80.0090.00014.60
7.3.70.0000.01314.61
7.3.60.0070.00714.76
7.3.50.0100.00614.68
7.3.40.0030.01414.62
7.3.30.0100.00314.60
7.3.20.0060.00316.39
7.3.10.0040.00716.61
7.3.00.0020.01016.54
7.2.330.0070.01416.27
7.2.320.0040.01516.69
7.2.310.0060.01316.61
7.2.300.0210.00016.38
7.2.290.0100.00616.53
7.2.260.0030.01415.01
7.2.250.0070.01014.79
7.2.240.0060.00914.80
7.2.230.0100.00714.84
7.2.220.0000.01415.06
7.2.210.0060.00814.75
7.2.200.0070.00314.88
7.2.190.0100.00714.77
7.2.180.0000.01614.44
7.2.170.0110.00714.93
7.2.160.0030.01014.84
7.2.150.0090.00316.61
7.2.140.0060.00916.72
7.2.130.0050.00916.70
7.2.120.0030.00816.61
7.2.110.0020.01216.67
7.2.100.0000.01116.66
7.2.90.0070.00716.86
7.2.80.0070.00916.84
7.2.70.0080.00316.67
7.2.60.0030.01016.59
7.2.50.0020.01216.77
7.2.40.0110.00216.81
7.2.30.0080.00316.61
7.2.20.0040.01116.73
7.2.10.0010.00716.66
7.2.00.0080.00717.55
7.1.330.0050.00515.39
7.1.320.0030.01015.73
7.1.310.0100.00315.66
7.1.300.0040.00815.44
7.1.290.0060.00915.52
7.1.280.0030.01015.36
7.1.270.0060.00315.30
7.1.260.0040.01115.59
7.1.250.0090.00215.73
7.1.240.0070.00715.49
7.1.230.0060.00315.68
7.1.220.0100.00315.68
7.1.210.0060.00615.51
7.1.200.0080.00415.60
7.1.190.0090.00915.64
7.1.180.0000.01515.40
7.1.170.0070.00315.44
7.1.160.0000.01015.32
7.1.150.0030.01315.70
7.1.140.0090.00615.51
7.1.130.0000.01115.53
7.1.120.0090.00015.47
7.1.110.0090.00315.67
7.1.100.0060.00616.93
7.1.90.0000.01415.25
7.1.80.0100.00715.34
7.1.70.0130.00216.00
7.1.60.0080.00917.52
7.1.50.0130.00525.14
7.1.40.0090.00015.12
7.1.30.0090.00315.52
7.1.20.0090.00315.61
7.1.10.0110.00015.14
7.1.00.0030.04418.90
7.0.330.0000.00915.16
7.0.320.0050.00515.16
7.0.310.0030.00715.18
7.0.300.0000.00815.13
7.0.290.0080.00015.15
7.0.280.0030.00815.23
7.0.270.0120.00315.33
7.0.260.0040.00815.03
7.0.250.0110.00415.27
7.0.240.0070.00715.12
7.0.230.0030.01015.44
7.0.220.0070.00715.32
7.0.210.0040.00715.09
7.0.200.0030.00715.92
7.0.190.0030.01015.27
7.0.180.0000.01214.81
7.0.170.0090.00615.03
7.0.160.0000.01315.14
7.0.150.0040.01115.21
7.0.140.0050.04018.59
7.0.130.0060.00914.95
7.0.120.0000.01314.81
7.0.110.0030.01015.34
7.0.100.0140.00015.24
7.0.90.0030.00615.30
7.0.80.0070.00715.46
7.0.70.0070.00715.19
7.0.60.0070.03917.64
7.0.50.0050.02616.55
7.0.40.0120.03716.72
7.0.30.0200.02516.73
7.0.20.0170.03916.79
7.0.10.0030.02416.76
7.0.00.0060.02416.80
5.6.400.0050.00514.06
5.6.390.0070.00714.42
5.6.380.0070.00314.42
5.6.370.0030.01014.40
5.6.360.0000.01414.32
5.6.350.0090.00614.21
5.6.340.0030.00914.16
5.6.330.0080.00614.54
5.6.320.0040.00814.30
5.6.310.0030.01014.38
5.6.300.0070.00414.20
5.6.290.0070.00714.19
5.6.280.0100.03717.64
5.6.270.0060.00313.96
5.6.260.0000.01614.54
5.6.250.0060.00614.24
5.6.240.0060.00913.92
5.6.230.0030.01514.30
5.6.220.0040.01114.15
5.6.210.0030.04017.35
5.6.200.0090.04216.20
5.6.190.0100.02317.16
5.6.180.0150.02317.34
5.6.170.0170.03917.52
5.6.160.0100.03717.46
5.6.150.0030.02816.25
5.6.140.0020.02716.27
5.6.130.0080.04016.21
5.6.120.0070.02617.69
5.6.110.0090.04217.58
5.6.100.0100.04517.57
5.6.90.0050.05117.61
5.6.80.0050.02517.22
5.6.70.2050.02217.19
5.6.60.0070.00314.11
5.6.50.0080.00414.38
5.6.40.0000.00814.34
5.6.30.0100.00014.18
5.6.20.0000.01014.13
5.6.10.0100.00013.91
5.6.00.0060.00614.23
5.5.380.0060.01214.07
5.5.370.0030.00714.30
5.5.360.0000.00914.23
5.5.350.0050.05217.31
5.5.340.0030.03816.31
5.5.330.0070.03217.20
5.5.320.0030.04817.39
5.5.310.0150.03417.09
5.5.300.0050.03916.27
5.5.290.0070.04116.11
5.5.280.0070.04717.30
5.5.270.0100.03717.45
5.5.260.0030.02417.49
5.5.250.0110.03817.23
5.5.240.0130.03917.24
5.5.230.0050.00514.19
5.5.220.0090.00314.05
5.5.210.0060.00614.27
5.5.200.0000.01214.08
5.5.190.0030.00714.00
5.5.180.0040.00814.17
5.5.170.0090.00613.67
5.5.160.0070.00213.88
5.5.150.0030.00713.79
5.5.140.0060.00314.28
5.5.130.0000.00913.86
5.5.120.0000.00714.13
5.5.110.0000.01013.86
5.5.100.0030.00613.56
5.5.90.0000.01213.72
5.5.80.0030.00614.48
5.5.70.0060.00313.98
5.5.60.0100.00013.97
5.5.50.0070.00313.83
5.5.40.0030.00613.98
5.5.30.0030.01013.98
5.5.20.0000.00914.04
5.5.10.0040.00714.11
5.5.00.0000.01014.36
5.4.450.0110.02715.38
5.4.440.0490.02515.40
5.4.430.0390.02515.38
5.4.420.0350.00115.31
5.4.410.0070.03215.15
5.4.400.0140.02815.04
5.4.390.0150.03014.96
5.4.380.0120.02515.04
5.4.370.0020.03215.05
5.4.360.0030.03114.96
5.4.350.0060.01711.69
5.4.340.0070.01811.69
5.4.330.0070.00011.35
5.4.320.0070.01811.93
5.4.310.0030.02311.92
5.4.300.0050.02111.93
5.4.290.0080.01811.91
5.4.280.0050.02011.87
5.4.270.0030.02111.87
5.4.260.0040.02711.87
5.4.250.0040.02811.87
5.4.240.0040.03011.86
5.4.230.0060.02511.86
5.4.220.0060.02111.86
5.4.210.0050.02111.86
5.4.200.0040.02211.86
5.4.190.0080.01911.86
5.4.180.0080.02011.86
5.4.170.0040.02211.87
5.4.160.0100.02711.87
5.4.150.0070.03211.86
5.4.140.0070.02911.70
5.4.130.0050.02711.70
5.4.120.0040.02311.68
5.4.110.0040.02211.67
5.4.100.0020.02411.67
5.4.90.0060.02111.68
5.4.80.0040.02511.67
5.4.70.0040.02011.67
5.4.60.0080.01911.67
5.4.50.0040.02011.67
5.4.40.0050.02211.67
5.4.30.0050.02111.66
5.4.20.0030.02211.67
5.4.10.0050.01911.67
5.4.00.0050.01911.41
5.3.290.0040.02212.07
5.3.280.0040.02212.03
5.3.270.0040.02312.03
5.3.260.0070.02012.04
5.3.250.0040.02112.03
5.3.240.0020.02512.03
5.3.230.0030.02512.03
5.3.220.0040.02112.02
5.3.210.0040.02412.02
5.3.200.0040.02112.01
5.3.190.0030.02412.01
5.3.180.0040.02212.01
5.3.170.0040.02112.01
5.3.160.0060.02012.01
5.3.150.0050.02012.01
5.3.140.0040.02312.00
5.3.130.0020.02512.00
5.3.120.0050.02212.00
5.3.110.0050.02912.00
5.3.100.0090.03611.73
5.3.90.0060.02311.71
5.3.80.0040.01911.71
5.3.70.0040.02011.71
5.3.60.0030.02311.71
5.3.50.0030.02111.67
5.3.40.0030.02111.68
5.3.30.0040.02411.65
5.3.20.0020.02611.54
5.3.10.0060.02311.52
5.3.00.0050.03311.51
5.2.170.0040.0529.17
5.2.160.0070.0429.17
5.2.150.0140.0529.17
5.2.140.0110.0529.17
5.2.130.0060.0479.13
5.2.120.0060.0409.13
5.2.110.0110.0359.13
5.2.100.0050.0419.13
5.2.90.0080.0279.13
5.2.80.0070.0289.12
5.2.70.0070.0439.12
5.2.60.0050.0309.07
5.2.50.0040.0319.04
5.2.40.0060.0289.01
5.2.30.0070.0298.99
5.2.20.0060.0278.98
5.2.10.0060.0268.89
5.2.00.0040.0298.75
5.1.60.0060.0238.09
5.1.50.0020.0288.09
5.1.40.0050.0378.07
5.1.30.0060.0408.42
5.1.20.0130.0448.44
5.1.10.0070.0288.16
5.1.00.0060.0268.16
5.0.50.0020.0256.65
5.0.40.0080.0566.50
5.0.30.0050.0326.32
5.0.20.0090.0176.28
5.0.10.0020.0266.26
5.0.00.0030.0336.25
4.4.90.0030.0174.78
4.4.80.0050.0174.76
4.4.70.0040.0184.76
4.4.60.0020.0204.75
4.4.50.0070.0144.77
4.4.40.0050.0274.71
4.4.30.0060.0184.75
4.4.20.0050.0224.84
4.4.10.0010.0254.85
4.4.00.0020.0344.76
4.3.110.0050.0214.67
4.3.100.0030.0224.66
4.3.90.0030.0214.64
4.3.80.0050.0284.59
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0040.0214.63
4.3.40.0020.0254.54
4.3.30.0020.0163.30
4.3.20.0050.0143.28
4.3.10.0040.0343.24
4.3.00.0130.0207.03

preferences:
42.21 ms | 401 KiB | 5 Q