3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (0) echo 3; $b = (function_exists('define')); define('A', 100); $f = 'define'; $f('B', $f); class A { } var_dump(method_exists('A', '__constructor'));

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.0110.00318.56
8.3.50.0110.00822.93
8.3.40.0070.00718.55
8.3.30.0110.00419.04
8.3.20.0030.00620.04
8.3.10.0080.00023.63
8.3.00.0040.00417.50
8.2.180.0150.00016.50
8.2.170.0100.01022.96
8.2.160.0070.00720.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00320.88
8.2.110.0060.00322.07
8.2.100.0070.00319.25
8.2.90.0070.00319.05
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00717.87
8.2.20.0030.00517.74
8.2.10.0040.00417.93
8.2.00.0030.00617.61
8.1.280.0000.01425.92
8.1.270.0080.00023.96
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0070.00323.88
8.1.230.0040.00719.09
8.1.220.0050.00317.77
8.1.210.0080.00018.77
8.1.200.0030.00917.23
8.1.190.0040.00416.98
8.1.180.0060.00318.10
8.1.170.0070.00018.50
8.1.160.0040.00421.89
8.1.150.0030.00618.85
8.1.140.0040.00417.42
8.1.130.0030.00317.82
8.1.120.0060.00317.42
8.1.110.0050.00217.29
8.1.100.0070.00017.39
8.1.90.0030.00617.45
8.1.80.0000.00817.37
8.1.70.0030.00317.34
8.1.60.0000.00917.40
8.1.50.0030.00517.37
8.1.40.0000.00817.36
8.1.30.0000.00817.56
8.1.20.0040.00417.50
8.1.10.0020.00517.46
8.1.00.0070.00017.46
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00518.25
8.0.270.0070.00017.10
8.0.260.0030.00317.18
8.0.250.0070.00016.79
8.0.240.0070.00016.82
8.0.230.0000.00917.00
8.0.220.0070.00016.93
8.0.210.0060.00316.89
8.0.200.0060.00016.85
8.0.190.0050.00516.96
8.0.180.0070.00016.82
8.0.170.0030.00516.95
8.0.160.0000.00816.89
8.0.150.0030.00316.69
8.0.140.0040.00416.79
8.0.130.0070.00013.36
8.0.120.0000.00716.86
8.0.110.0000.00716.74
8.0.100.0000.00716.87
8.0.90.0040.00416.76
8.0.80.0060.00916.82
8.0.70.0080.00016.75
8.0.60.0040.00416.79
8.0.50.0000.00716.92
8.0.30.0080.01417.00
8.0.20.0200.00717.40
8.0.10.0050.00316.88
8.0.00.0110.00716.75
7.4.330.0030.00315.00
7.4.320.0030.00316.52
7.4.300.0040.00416.52
7.4.290.0030.00316.54
7.4.280.0000.00816.57
7.4.270.0030.00316.59
7.4.260.0030.00316.53
7.4.250.0040.00416.38
7.4.240.0000.00716.35
7.4.230.0030.00316.55
7.4.220.0060.01016.53
7.4.210.0090.00616.54
7.4.200.0030.00316.62
7.4.160.0030.01316.23
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0110.00816.55
7.4.120.0100.00716.35
7.4.110.0090.00616.50
7.4.100.0090.00916.46
7.4.90.0160.00416.45
7.4.80.0100.00719.39
7.4.70.0030.01516.36
7.4.60.0100.00716.29
7.4.50.0000.00416.28
7.4.40.0030.01416.52
7.4.30.0120.00816.07
7.4.00.0040.01314.80
7.3.330.0050.00013.10
7.3.320.0000.00613.03
7.3.310.0070.00016.24
7.3.300.0000.00716.22
7.3.290.0100.00316.31
7.3.280.0080.00916.22
7.3.270.0120.00617.40
7.3.260.0090.00916.22
7.3.250.0120.00416.20
7.3.240.0070.01116.21
7.3.230.0030.01316.41
7.3.210.0100.00716.38
7.3.200.0100.00719.39
7.3.190.0110.00516.60
7.3.180.0120.00616.22
7.3.170.0060.01016.43
7.3.160.0060.00916.32
7.3.120.0120.00314.88
7.3.110.0060.01314.89
7.3.100.0060.00914.58
7.3.90.0080.00814.62
7.3.80.0100.00614.65
7.3.70.0070.01014.59
7.3.60.0000.01414.61
7.3.50.0090.00614.63
7.3.40.0090.00614.45
7.3.30.0040.00714.72
7.3.20.0030.00716.54
7.3.10.0000.00916.60
7.3.00.0090.00616.60
7.2.330.0120.00616.57
7.2.320.0100.00616.66
7.2.310.0090.00616.64
7.2.300.0130.00916.34
7.2.290.0100.00716.56
7.2.250.0030.01714.82
7.2.240.0030.01614.59
7.2.230.0090.00314.58
7.2.220.0060.00314.84
7.2.210.0090.00314.61
7.2.200.0040.00715.05
7.2.190.0030.01014.84
7.2.180.0080.00514.91
7.2.170.0100.00714.86
7.2.60.0100.00616.81
7.2.00.0030.00919.12
7.1.330.0070.00715.80
7.1.320.0090.00315.72
7.1.310.0060.00915.89
7.1.300.0040.01115.50
7.1.290.0090.00615.53
7.1.280.0000.00915.79
7.1.270.0070.00715.67
7.1.260.0080.00815.50
7.1.200.0060.00615.84
7.1.100.0180.00418.04
7.1.70.0040.01217.06
7.1.60.0070.00319.40
7.1.50.0070.01616.85
7.1.00.0000.08022.33
7.0.200.0030.00716.73
7.0.140.0100.06722.12
7.0.60.0000.08719.86
7.0.50.0100.07717.89
7.0.40.0130.07320.11
7.0.30.0270.03720.34
7.0.20.0200.09320.15
7.0.10.0030.08320.21
7.0.00.0070.04720.22
5.6.280.0000.07721.10
5.6.210.0100.05320.60
5.6.200.0000.08718.29
5.6.190.0130.07320.55
5.6.180.0670.06720.33
5.6.170.0270.07720.54
5.6.160.0070.08020.71
5.6.150.0030.08318.18
5.6.140.0000.05318.18
5.6.130.0070.08718.24
5.6.120.0070.04021.14
5.6.110.0170.07720.97
5.6.100.0170.07721.13
5.6.90.0130.07321.10
5.6.80.0170.07020.40
5.5.350.0170.08020.41
5.5.340.0030.04018.04
5.5.330.0030.04720.59
5.5.320.0300.06720.31
5.5.310.0330.08320.37
5.5.300.0070.07317.95
5.5.290.0030.08017.98
5.5.280.0100.04320.90
5.5.270.0000.04720.73
5.5.260.0100.08720.89
5.5.250.0130.07020.61
5.5.240.0130.06720.26
5.4.450.0730.05719.49
5.4.440.0000.07319.59
5.4.430.0200.05019.60
5.4.420.0200.06719.62
5.4.410.0030.06019.00
5.4.400.0430.05718.84
5.4.390.0370.07018.77
5.4.380.0100.05318.59
5.4.370.0000.04318.76
5.4.360.0230.03318.81
5.4.350.0090.05012.02
5.4.340.0070.03312.02
5.4.320.0030.03912.50
5.4.310.0040.04012.49
5.4.300.0040.03812.49
5.4.290.0060.04012.49
5.4.280.0060.04212.39
5.4.270.0080.03512.39
5.4.260.0050.04312.39
5.4.250.0070.04512.39
5.4.240.0070.03512.39
5.4.230.0090.03812.38
5.4.220.0090.04612.38
5.4.210.0060.03712.38
5.4.200.0050.03912.38
5.4.190.0070.03912.38
5.4.180.0070.03712.38
5.4.170.0030.04012.39
5.4.160.0090.03912.39
5.4.150.0070.03412.38
5.4.140.0060.03912.07
5.4.130.0020.04512.06
5.4.120.0070.03912.01
5.4.110.0050.04012.01
5.4.100.0080.03712.01
5.4.90.0070.04212.01
5.4.80.0120.03312.01
5.4.70.0040.03612.00
5.4.60.0050.03612.00
5.4.50.0090.04312.01
5.4.40.0110.04412.00
5.4.30.0100.04511.99
5.4.20.0120.04111.99
5.4.10.0080.04411.99
5.4.00.0120.04511.48
5.3.290.0090.05112.80
5.3.280.0100.04812.71
5.3.270.0090.05112.72
5.3.260.0090.05112.72
5.3.250.0080.05112.72
5.3.240.0090.05112.72
5.3.230.0100.04612.71
5.3.220.0060.04812.68
5.3.210.0080.04012.68
5.3.200.0080.04112.68
5.3.190.0060.03812.68
5.3.180.0080.03812.67
5.3.170.0080.05312.67
5.3.160.0080.03712.67
5.3.150.0070.04012.68
5.3.140.0090.03712.66
5.3.130.0050.04612.65
5.3.120.0080.03712.65
5.3.110.0070.03912.66
5.3.100.0110.05112.12
5.3.90.0100.03512.09
5.3.80.0070.03812.09
5.3.70.0050.03812.09
5.3.60.0060.04212.07
5.3.50.0050.04212.02
5.3.40.0110.04312.02
5.3.30.0100.04211.98
5.3.20.0110.03911.75
5.3.10.0100.03211.72
5.3.00.0070.03711.71
5.2.170.0050.0359.21
5.2.160.0040.0319.21
5.2.150.0030.0339.21
5.2.140.0080.0359.20
5.2.130.0050.0429.17
5.2.120.0080.0339.17
5.2.110.0070.0279.18
5.2.100.0060.0359.17
5.2.90.0110.0379.17
5.2.80.0060.0299.16
5.2.70.0040.0409.17
5.2.60.0060.0379.11
5.2.50.0020.0399.09
5.2.40.0100.0349.07
5.2.30.0090.0379.04
5.2.20.0060.0399.02
5.2.10.0050.0368.93
5.2.00.0060.0298.80
5.1.60.0030.0278.08
5.1.50.0050.0258.07
5.1.40.0050.0248.06
5.1.30.0080.0248.41
5.1.20.0030.0298.43
5.1.10.0060.0258.15
5.1.00.0070.0258.15
5.0.50.0010.0246.63
5.0.40.0050.0186.49
5.0.30.0100.0596.31
5.0.20.0030.0256.27
5.0.10.0040.0216.25
5.0.00.0030.0366.24
4.4.90.0010.0194.78
4.4.80.0060.0174.75
4.4.70.0030.0204.76
4.4.60.0050.0164.75
4.4.50.0020.0174.77
4.4.40.0040.0264.70
4.4.30.0030.0164.76
4.4.20.0070.0124.85
4.4.10.0020.0184.85
4.4.00.0060.0234.76
4.3.110.0020.0184.67
4.3.100.0050.0154.67
4.3.90.0020.0164.64
4.3.80.0060.0244.59
4.3.70.0050.0174.63
4.3.60.0080.0134.63
4.3.50.0050.0274.63
4.3.40.0170.0554.54
4.3.30.0040.0163.30
4.3.20.0040.0213.27
4.3.10.0030.0203.23
4.3.00.0270.0277.00

preferences:
44.62 ms | 401 KiB | 5 Q