3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(){ $GLOBALS['foobar'] = 'foobar'; } function bar(){ echo $GLOBALS['foobar']; } foo(); echo $GLOBALS['foobar'];

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.00718.15
8.3.50.0120.00321.92
8.3.40.0110.00718.80
8.3.30.0070.00718.86
8.3.20.0000.00720.16
8.3.10.0080.00021.73
8.3.00.0030.00517.68
8.2.180.0090.00618.03
8.2.170.0070.01322.96
8.2.160.0110.00420.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00421.09
8.2.110.0030.00622.25
8.2.100.0080.00417.72
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0000.01018.05
8.2.50.0060.00618.07
8.2.40.0000.00718.22
8.2.30.0070.00018.26
8.2.20.0000.00817.72
8.2.10.0000.00817.98
8.2.00.0030.00617.72
8.1.280.0060.00925.92
8.1.270.0060.00323.92
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.94
8.1.230.0090.00322.11
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0030.00618.59
8.1.160.0020.00521.92
8.1.150.0040.00418.78
8.1.140.0070.00017.49
8.1.130.0030.00317.82
8.1.120.0040.00417.53
8.1.110.0040.00417.44
8.1.100.0030.00317.46
8.1.90.0030.00317.42
8.1.80.0000.00817.43
8.1.70.0000.00817.32
8.1.60.0050.00317.59
8.1.50.0040.00417.59
8.1.40.0000.00717.40
8.1.30.0080.00017.59
8.1.20.0000.00817.62
8.1.10.0080.00017.56
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00518.42
8.0.270.0040.00417.19
8.0.260.0000.00617.18
8.0.250.0030.00316.84
8.0.240.0020.00516.77
8.0.230.0040.00416.77
8.0.220.0000.00816.83
8.0.210.0030.00316.70
8.0.200.0030.00316.85
8.0.190.0070.00016.93
8.0.180.0080.00016.80
8.0.170.0040.00416.88
8.0.160.0040.00416.81
8.0.150.0000.00716.77
8.0.140.0000.00816.78
8.0.130.0000.00513.21
8.0.120.0040.00416.82
8.0.110.0070.00016.86
8.0.100.0000.00716.65
8.0.90.0000.00716.73
8.0.80.0030.01216.78
8.0.70.0070.00016.73
8.0.60.0040.00416.76
8.0.50.0000.00816.83
8.0.30.0080.01416.92
8.0.20.0140.00617.42
8.0.10.0000.00717.11
8.0.00.0080.01016.64
7.4.330.0050.00015.08
7.4.320.0060.00016.41
7.4.300.0040.00416.44
7.4.290.0070.00316.64
7.4.280.0080.00016.59
7.4.270.0000.00716.52
7.4.260.0030.00616.58
7.4.250.0050.00216.38
7.4.240.0070.00016.49
7.4.230.0030.00316.66
7.4.220.0060.01216.67
7.4.210.0070.01116.52
7.4.200.0070.00016.48
7.4.160.0080.00816.41
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0050.01116.56
7.4.120.0140.00416.50
7.4.110.0110.01116.70
7.4.100.0150.00916.50
7.4.90.0030.01516.40
7.4.80.0060.01619.39
7.4.70.0100.00516.48
7.4.60.0090.00916.48
7.4.50.0000.00416.35
7.4.40.0030.01316.35
7.4.30.0120.00316.38
7.4.00.0030.01415.07
7.3.330.0060.00013.24
7.3.320.0050.00013.29
7.3.310.0030.00316.19
7.3.300.0040.00416.16
7.3.290.0070.00716.28
7.3.280.0090.00816.29
7.3.270.0150.00317.40
7.3.260.0070.01116.42
7.3.250.0080.00916.55
7.3.240.0080.01416.25
7.3.230.0060.01016.46
7.3.210.0140.00316.25
7.3.200.0100.00719.39
7.3.190.0120.00616.63
7.3.180.0000.01416.50
7.3.170.0090.01216.38
7.3.160.0030.01316.41
7.3.120.0030.01414.75
7.2.330.0090.01316.32
7.2.320.0070.01016.63
7.2.310.0170.00016.82
7.2.300.0090.01316.78
7.2.290.0160.00016.65
7.2.60.0000.01417.03
7.2.00.0190.01419.10
7.1.200.0090.00315.61
7.1.100.0000.01218.36
7.1.70.0040.00417.07
7.1.60.0070.00719.25
7.1.50.0130.00316.88
7.1.00.0070.07322.51
7.0.200.0040.00416.71
7.0.140.0030.07322.18
7.0.60.0130.06719.86
7.0.50.0000.04317.89
7.0.40.0200.06720.40
7.0.30.0370.07320.41
7.0.20.0300.08020.19
7.0.10.0100.08720.21
7.0.00.0170.08020.20
5.6.280.0070.07020.81
5.6.210.0030.04020.63
5.6.200.0100.07018.24
5.6.190.0030.07720.61
5.6.180.0230.08320.77
5.6.170.0230.06720.45
5.6.160.0100.08020.48
5.6.150.0030.04318.18
5.6.140.0100.06018.19
5.6.130.0100.08018.14
5.6.120.0230.06320.95
5.6.110.0100.06721.00
5.6.100.0030.06721.11
5.6.90.0030.08721.13
5.6.80.0030.08020.48
5.5.350.0170.06320.43
5.5.340.0000.04017.95
5.5.330.0070.06720.35
5.5.320.0200.06020.30
5.5.310.0230.04720.27
5.5.300.0130.06018.02
5.5.290.0030.04017.99
5.5.280.0100.08020.82
5.5.270.0070.05720.73
5.5.260.0070.04020.86
5.5.250.0070.08020.67
5.5.240.0030.06320.28
5.4.450.0570.05719.48
5.4.440.0700.06319.48
5.4.430.1000.05019.47
5.4.420.0930.06319.38
5.4.410.0130.05018.70
5.4.400.0370.05018.83
5.4.390.1400.06318.53
5.4.380.0170.05318.81
5.4.370.0100.03718.75
5.4.360.0030.04018.57
5.4.350.0070.03912.02
5.4.340.0080.03812.02
5.4.320.0080.03712.50
5.4.310.0090.03612.50
5.4.300.0140.03412.50
5.4.290.0110.04412.50
5.4.280.0080.04212.40
5.4.270.0070.03712.40
5.4.260.0050.04112.40
5.4.250.0060.03812.40
5.4.240.0040.04312.39
5.4.230.0070.05212.39
5.4.220.0140.04612.39
5.4.210.0090.04712.39
5.4.200.0080.04212.39
5.4.190.0030.04512.39
5.4.180.0060.03512.39
5.4.170.0030.03912.39
5.4.160.0070.03512.39
5.4.150.0060.03612.38
5.4.140.0040.04012.07
5.4.130.0040.03712.06
5.4.120.0050.03612.02
5.4.110.0060.03512.01
5.4.100.0080.03812.01
5.4.90.0050.03712.02
5.4.80.0080.03412.01
5.4.70.0040.03712.01
5.4.60.0070.03312.00
5.4.50.0060.03612.00
5.4.40.0050.03512.00
5.4.30.0060.03511.99
5.4.20.0060.03411.99
5.4.10.0030.03812.00
5.4.00.0030.03811.48
5.3.290.0050.04012.80
5.3.280.0090.03512.70
5.3.270.0040.04112.73
5.3.260.0080.03612.72
5.3.250.0060.03812.72
5.3.240.0060.03712.72
5.3.230.0040.04012.71
5.3.220.0050.03912.68
5.3.210.0050.04112.68
5.3.200.0050.03912.68
5.3.190.0040.04112.68
5.3.180.0040.03912.67
5.3.170.0070.03612.67
5.3.160.0070.03512.67
5.3.150.0060.03712.68
5.3.140.0060.03612.66
5.3.130.0090.03512.66
5.3.120.0060.03912.65
5.3.110.0020.04212.66
5.3.100.0070.03512.12
5.3.90.0060.03512.10
5.3.80.0080.03412.09
5.3.70.0060.03612.09
5.3.60.0090.03312.08
5.3.50.0070.03412.02
5.3.40.0070.03512.02
5.3.30.0060.03511.98
5.3.20.0060.03411.76
5.3.10.0080.03311.73
5.3.00.0050.04011.71
5.2.170.0030.0339.21
5.2.160.0050.0299.21
5.2.150.0070.0289.21
5.2.140.0040.0319.21
5.2.130.0050.0299.16
5.2.120.0060.0279.17
5.2.110.0040.0319.17
5.2.100.0050.0289.18
5.2.90.0030.0309.17
5.2.80.0070.0289.17
5.2.70.0060.0309.17
5.2.60.0030.0319.14
5.2.50.0030.0319.11
5.2.40.0040.0309.08
5.2.30.0050.0299.05
5.2.20.0060.0289.04
5.2.10.0070.0258.96
5.2.00.0070.0258.80
5.1.60.0030.0248.09
5.1.50.0080.0218.09
5.1.40.0030.0258.06
5.1.30.0040.0268.42
5.1.20.0070.0248.43
5.1.10.0040.0268.16
5.1.00.0050.0248.16
5.0.50.0020.0226.63
5.0.40.0050.0186.50
5.0.30.0040.0316.31
5.0.20.0020.0226.28
5.0.10.0040.0206.26
5.0.00.0020.0336.25
4.4.90.0000.0184.78
4.4.80.0030.0154.76
4.4.70.0020.0164.75
4.4.60.0020.0174.76
4.4.50.0020.0184.77
4.4.40.0060.0294.71
4.4.30.0020.0174.76
4.4.20.0030.0154.85
4.4.10.0040.0144.85
4.4.00.0030.0254.76
4.3.110.0030.0164.66
4.3.100.0040.0154.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0050.0134.63
4.3.50.0020.0174.62
4.3.40.0020.0254.54
4.3.30.0010.0173.30
4.3.20.0020.0163.28
4.3.10.0000.0183.25
4.3.00.0100.0307.21

preferences:
39.59 ms | 401 KiB | 5 Q