3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_global = "hello world"; class MyClass { public function value($enum) { global $test_global; echo "mytest.global::".$test_global."::"; } } $c = new MyClass; $c->value(1);

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.0070.01418.55
8.3.50.0110.00822.00
8.3.40.0070.00718.76
8.3.30.0070.01118.75
8.3.20.0040.00420.34
8.3.10.0080.00023.70
8.3.00.0080.00620.77
8.2.180.0140.00016.63
8.2.170.0150.00322.96
8.2.160.0150.00020.49
8.2.150.0070.00724.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0000.00820.84
8.2.110.0030.00622.25
8.2.100.0040.00720.50
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0000.01017.92
8.2.50.0060.00318.07
8.2.40.0050.00320.00
8.2.30.0000.00818.30
8.2.20.0040.00417.60
8.2.10.0030.00518.18
8.2.00.0070.00017.79
8.1.280.0140.00325.92
8.1.270.0040.00422.11
8.1.260.0060.00326.35
8.1.250.0040.01128.09
8.1.240.0050.00521.93
8.1.230.0080.00419.08
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0040.00421.93
8.1.150.0040.00418.60
8.1.140.0050.00217.55
8.1.130.0060.00017.79
8.1.120.0070.00017.38
8.1.110.0000.00717.41
8.1.100.0050.00517.48
8.1.90.0030.00317.47
8.1.80.0000.00717.34
8.1.70.0040.00417.38
8.1.60.0000.00917.62
8.1.50.0000.00717.52
8.1.40.0030.00517.38
8.1.30.0040.00417.49
8.1.20.0050.00217.69
8.1.10.0070.00017.46
8.1.00.0030.00517.58
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.45
8.0.270.0030.00317.14
8.0.260.0080.00017.17
8.0.250.0000.00716.97
8.0.240.0060.00316.97
8.0.230.0040.00416.95
8.0.220.0000.00716.89
8.0.210.0030.00316.92
8.0.200.0040.00416.92
8.0.190.0040.00417.00
8.0.180.0000.00716.94
8.0.170.0000.00716.91
8.0.160.0070.00016.95
8.0.150.0000.00716.79
8.0.140.0000.00816.83
8.0.130.0030.00313.38
8.0.120.0040.00416.86
8.0.110.0040.00416.80
8.0.100.0050.00316.88
8.0.90.0080.00016.73
8.0.80.0180.00316.86
8.0.70.0070.00016.91
8.0.60.0040.00416.79
8.0.50.0000.00716.77
8.0.30.0110.00817.11
8.0.20.0110.00817.40
8.0.10.0030.00516.89
8.0.00.0100.00716.78
7.4.330.0000.00515.00
7.4.320.0000.00616.55
7.4.300.0000.00716.40
7.4.290.0050.00416.59
7.4.280.0080.00016.52
7.4.270.0040.00416.41
7.4.260.0030.00616.62
7.4.250.0000.00716.59
7.4.240.0030.00516.57
7.4.230.0080.00016.70
7.4.220.0120.00616.50
7.4.210.0070.00716.43
7.4.200.0030.00316.38
7.4.160.0060.01016.66
7.4.150.0110.00717.40
7.4.140.0160.00617.86
7.4.130.0100.00716.52
7.4.120.0060.01316.43
7.4.110.0160.00016.47
7.4.100.0090.00916.26
7.4.90.0090.01216.36
7.4.80.0150.00419.39
7.4.70.0060.01016.51
7.4.60.0040.01216.39
7.4.50.0060.00316.48
7.4.40.0100.01016.39
7.4.30.0150.00416.67
7.4.00.0100.00315.10
7.3.330.0000.00613.26
7.3.320.0000.00713.16
7.3.310.0080.00016.46
7.3.300.0070.00016.17
7.3.290.0040.01116.30
7.3.280.0070.01016.27
7.3.270.0060.01017.40
7.3.260.0070.01016.49
7.3.250.0120.00516.35
7.3.240.0130.00316.37
7.3.230.0120.01216.40
7.3.210.0080.00816.56
7.3.200.0100.00719.39
7.3.190.0110.00716.21
7.3.180.0060.00916.48
7.3.170.0030.01416.66
7.3.160.0060.01216.59
7.3.120.0030.01214.66
7.3.10.0070.00716.47
7.3.00.0030.00616.59
7.2.330.0060.01216.48
7.2.320.0120.00616.68
7.2.310.0130.01016.88
7.2.300.0130.00316.77
7.2.290.0140.00616.72
7.2.130.0140.00017.02
7.2.120.0080.00316.85
7.2.110.0070.00716.91
7.2.100.0030.01016.63
7.2.90.0030.01017.05
7.2.80.0060.00317.01
7.2.70.0060.00717.08
7.2.60.0060.00916.75
7.2.50.0070.00316.93
7.2.40.0070.00716.90
7.2.30.0030.01016.76
7.2.20.0030.00616.85
7.2.10.0140.00017.04
7.2.00.0090.00517.98
7.1.250.0030.01015.71
7.1.100.0070.00718.00
7.1.70.0000.00816.95
7.1.60.0070.01819.70
7.1.50.0040.01816.80
7.1.00.0130.06722.34
7.0.200.0180.00616.28
7.0.140.0000.07721.99
7.0.60.0130.07319.91
7.0.50.0070.08017.86
7.0.40.0070.08720.23
7.0.30.0270.06720.25
7.0.20.0330.07020.06
7.0.10.0030.04320.30
7.0.00.0100.05320.25
5.6.210.0030.06020.53
5.6.200.0130.07018.24
5.6.190.0100.06720.77
5.6.180.0430.08020.50
5.6.170.0270.06020.45
5.6.160.0030.04320.46
5.6.150.0130.05018.23
5.6.140.0100.06718.28
5.6.130.0100.07318.16
5.6.120.0070.05721.00
5.6.110.0100.07320.99
5.6.100.0130.07320.96
5.6.90.0100.08020.95
5.6.80.0070.07720.42
5.5.350.0070.05320.41
5.5.340.0130.06717.95
5.5.330.0030.04320.32
5.5.320.0030.06720.27
5.5.310.0330.06720.51
5.5.300.0030.08018.03
5.5.290.0100.07718.01
5.5.280.0000.04720.80
5.5.270.0070.03720.75
5.5.260.0170.07020.88
5.5.250.0170.07720.59
5.5.240.0000.03720.34
5.4.450.0270.05027.55
5.4.440.0330.05326.16
5.4.430.0270.03726.13
5.4.420.0200.04026.13
5.4.410.0270.04326.13
5.4.400.0270.04026.12
5.4.390.0370.04326.12
5.4.380.0130.07718.60
5.4.370.0030.06318.58
5.4.360.0100.05318.51
5.4.350.0200.05318.80
5.4.340.0170.05018.74
5.4.320.0080.03512.50
5.4.310.0030.04012.50
5.4.300.0070.04212.50
5.4.290.0140.05412.50
5.4.280.0130.05112.39
5.4.270.0140.05212.40
5.4.260.0160.05512.39
5.4.250.0080.05512.39
5.4.240.0070.05512.40
5.4.230.0060.04612.38
5.4.220.0040.03912.39
5.4.210.0090.04412.39
5.4.200.0090.05012.39
5.4.190.0080.04912.38
5.4.180.0080.05112.39
5.4.170.0110.04612.39
5.4.160.0090.04912.39
5.4.150.0100.05112.39
5.4.140.0130.06512.07
5.4.130.0140.05212.06
5.4.120.0100.05612.02
5.4.110.0160.05112.01
5.4.100.0120.05012.01
5.4.90.0090.05012.01
5.4.80.0070.04212.01
5.4.70.0100.04612.01
5.4.60.0090.04712.01
5.4.50.0110.04812.01
5.4.40.0090.05412.00
5.4.30.0100.03612.00
5.4.20.0080.03511.99
5.4.10.0080.05012.00
5.4.00.0120.04911.48
5.3.290.0050.04212.80
5.3.280.0120.05412.70
5.3.270.0140.05612.72
5.3.260.0120.05612.72
5.3.250.0080.05812.72
5.3.240.0070.05812.72
5.3.230.0100.05312.71
5.3.220.0130.05112.68
5.3.210.0100.05612.68
5.3.200.0080.05412.68
5.3.190.0070.05212.68
5.3.180.0080.05312.67
5.3.170.0070.05412.66
5.3.160.0130.04812.67
5.3.150.0100.05212.68
5.3.140.0150.04612.66
5.3.130.0090.05412.66
5.3.120.0120.05212.66
5.3.110.0090.05412.66
5.3.100.0090.05012.12
5.3.90.0090.05212.09
5.3.80.0100.04812.09
5.3.70.0100.04812.09
5.3.60.0070.05112.07
5.3.50.0110.04612.02
5.3.40.0150.06712.02
5.3.30.0110.04611.98
5.3.20.0100.04511.76
5.3.10.0090.04711.72
5.3.00.0100.03411.71
5.2.170.0050.0329.22
5.2.160.0080.0359.21
5.2.150.0060.0309.22
5.2.140.0040.0339.21
5.2.130.0050.0309.18
5.2.120.0050.0359.18
5.2.110.0040.0319.19
5.2.100.0040.0319.17
5.2.90.0050.0319.18
5.2.80.0060.0359.17
5.2.70.0120.0359.17
5.2.60.0060.0399.13
5.2.50.0040.0409.09
5.2.40.0050.0349.07
5.2.30.0050.0369.04
5.2.20.0070.0349.03
5.2.10.0050.0298.94
5.2.00.0100.0268.80
5.1.60.0070.0228.09
5.1.50.0010.0298.08
5.1.40.0040.0268.07
5.1.30.0020.0298.41
5.1.20.0060.0268.44
5.1.10.0040.0328.16
5.1.00.0080.0298.16
5.0.50.0030.0246.64
5.0.40.0030.0216.49
5.0.30.0030.0336.31
5.0.20.0030.0226.27
5.0.10.0030.0216.25
5.0.00.0040.0326.25
4.4.90.0040.0154.78
4.4.80.0040.0204.75
4.4.70.0030.0174.76
4.4.60.0060.0164.76
4.4.50.0030.0164.77
4.4.40.0040.0274.71
4.4.30.0020.0164.76
4.4.20.0020.0184.85
4.4.10.0000.0184.85
4.4.00.0050.0234.76
4.3.110.0040.0194.67
4.3.100.0020.0184.67
4.3.90.0040.0144.64
4.3.80.0030.0254.59
4.3.70.0030.0154.63
4.3.60.0020.0164.63
4.3.50.0020.0184.63
4.3.40.0050.0324.54
4.3.30.0050.0203.30
4.3.20.0020.0183.28
4.3.10.0000.0253.23
4.3.00.0000.02026.11

preferences:
45.13 ms | 401 KiB | 5 Q