3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function() { return true; }); // Insert evil laugh. Please? With a cherry on top? function foo(array $foo) { var_dump('foo'); } foo(1); function bar($bar) { foreach ($bar as $kruk) { echo $kruk; } var_dump('bar'); } bar(1); function baz($baz) { if ( ! is_array($baz)) { throw new InvalidArgumentException('$baz is not an array.'); } var_dump('baz'); } baz(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.68
8.3.50.0090.00921.08
8.3.40.0090.00618.79
8.3.30.0070.00720.29
8.3.20.0000.00720.27
8.3.10.0000.00822.09
8.3.00.0040.00422.18
8.2.180.0030.01616.88
8.2.170.0100.01022.96
8.2.160.0080.00822.27
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0130.00626.16
8.2.120.0000.00821.24
8.2.110.0080.00022.24
8.2.100.0080.00417.91
8.2.90.0000.00719.05
8.2.80.0040.00419.33
8.2.70.0030.00617.50
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0080.00018.22
8.2.30.0040.00419.43
8.2.20.0070.00017.83
8.2.10.0000.00817.67
8.2.00.0030.00617.78
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0110.00019.17
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0050.00317.41
8.1.180.0060.00318.10
8.1.170.0030.00718.68
8.1.160.0040.00418.70
8.1.150.0000.00718.53
8.1.140.0050.00317.44
8.1.130.0000.00717.67
8.1.120.0040.00417.40
8.1.110.0000.00817.42
8.1.100.0040.00417.28
8.1.90.0080.00017.40
8.1.80.0070.00017.30
8.1.70.0070.00017.23
8.1.60.0000.00817.54
8.1.50.0000.00817.49
8.1.40.0000.00817.34
8.1.30.0000.00717.46
8.1.20.0040.00417.53
8.1.10.0040.00417.53
8.1.00.0080.00017.34
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0070.00018.30
8.0.270.0000.00717.30
8.0.260.0030.00316.73
8.0.250.0070.00017.00
8.0.240.0000.00816.92
8.0.230.0040.00416.85
8.0.220.0000.00716.93
8.0.210.0000.00716.77
8.0.200.0030.00316.89
8.0.190.0040.00417.07
8.0.180.0040.00416.87
8.0.170.0050.00317.01
8.0.160.0050.00317.04
8.0.150.0070.00016.94
8.0.140.0030.00516.86
8.0.130.0000.00713.35
8.0.120.0040.00416.96
8.0.110.0030.00616.96
8.0.100.0070.00016.84
8.0.90.0000.00717.00
8.0.80.0070.01116.85
8.0.70.0040.00417.02
8.0.60.0080.00017.02
8.0.50.0080.00016.84
8.0.30.0070.01117.19
8.0.20.0110.00917.40
8.0.10.0000.00816.88
8.0.00.0070.01116.79
7.4.330.0020.00215.00
7.4.320.0080.00016.48
7.4.300.0000.00716.59
7.4.290.0000.00816.46
7.4.280.0040.00416.55
7.4.270.0030.00316.44
7.4.260.0030.00313.17
7.4.250.0090.00016.35
7.4.240.0000.00716.50
7.4.230.0030.00316.39
7.4.220.0040.01916.58
7.4.210.0090.00616.50
7.4.200.0080.00016.30
7.4.190.0080.00016.49
7.4.160.0060.00916.23
7.4.150.0110.01217.40
7.4.140.0070.01017.86
7.4.130.0100.00616.34
7.4.120.0120.00716.60
7.4.110.0070.01016.36
7.4.100.0060.01316.53
7.4.90.0140.00416.41
7.4.80.0070.01119.39
7.4.70.0130.00716.43
7.4.60.0110.00616.68
7.4.50.0090.00016.57
7.4.40.0060.00922.77
7.4.30.0120.00916.63
7.4.00.0060.01114.86
7.3.330.0000.00513.26
7.3.320.0050.00013.30
7.3.310.0000.00716.21
7.3.300.0030.00316.20
7.3.290.0080.00516.33
7.3.280.0080.01116.35
7.3.270.0100.00717.40
7.3.260.0150.00316.52
7.3.250.0100.00816.26
7.3.240.0110.00616.39
7.3.230.0030.01416.56
7.3.210.0100.00616.61
7.3.200.0150.00319.39
7.3.190.0180.00316.59
7.3.180.0070.01016.48
7.3.170.0080.00816.59
7.3.160.0060.01716.58
7.3.120.0050.01214.64
7.3.110.0030.01414.74
7.3.100.0060.00914.90
7.3.90.0060.00914.93
7.3.80.0060.00314.50
7.3.70.0000.01414.60
7.3.60.0100.00314.70
7.3.50.0070.00614.93
7.3.40.0070.00414.68
7.3.30.0110.00414.88
7.3.20.0030.00616.78
7.3.10.0120.00416.38
7.3.00.0110.00716.54
7.2.330.0080.00916.39
7.2.320.0150.00616.55
7.2.310.0100.00716.52
7.2.300.0120.00416.48
7.2.290.0030.01516.59
7.2.250.0040.01414.74
7.2.240.0140.00014.56
7.2.230.0060.00914.54
7.2.220.0090.00615.07
7.2.210.0030.01015.17
7.2.200.0060.00915.13
7.2.190.0060.00914.90
7.2.180.0090.00614.83
7.2.170.0060.00614.98
7.2.160.0060.00614.92
7.2.150.0090.00316.60
7.2.140.0000.01116.88
7.2.130.0090.00816.58
7.2.120.0050.00916.79
7.2.110.0080.00616.51
7.2.100.0060.00616.57
7.2.90.0070.00516.83
7.2.80.0100.00916.63
7.2.70.0060.00916.78
7.2.60.0050.00816.66
7.2.50.0140.00616.73
7.2.40.0070.00716.72
7.2.30.0120.00516.82
7.2.20.0100.00416.54
7.2.10.0130.00916.87
7.2.00.0080.01016.80
7.1.330.0030.01215.75
7.1.320.0080.00615.75
7.1.310.0060.00315.70
7.1.300.0000.01115.48
7.1.290.0070.00715.76
7.1.280.0000.01115.37
7.1.270.0110.00015.52
7.1.260.0000.01415.50
7.1.250.0040.00915.65
7.1.240.0070.00715.55
7.1.230.0040.00815.79
7.1.220.0030.01015.78
7.1.210.0100.00715.59
7.1.200.0070.00715.74
7.1.190.0000.01215.71
7.1.180.0040.00915.63
7.1.170.0070.00415.88
7.1.160.0070.00715.74
7.1.150.0080.00415.75
7.1.140.0040.00815.53
7.1.130.0100.00315.70
7.1.120.0040.01115.59
7.1.110.0040.01115.46
7.1.100.0030.01016.93
7.1.90.0100.00315.58
7.1.80.0040.01215.58
7.1.70.0080.00416.26
7.1.60.0100.00717.36
7.1.50.0110.00716.39
7.1.40.0030.01015.68
7.1.30.0000.01515.67
7.1.20.0100.00315.33
7.1.10.0070.00315.40
7.1.00.0030.02019.03
7.0.330.0030.00915.41
7.0.320.0070.00715.09
7.0.310.0050.00515.26
7.0.300.0060.00615.17
7.0.290.0100.00315.34
7.0.280.0000.01215.29
7.0.270.0090.00315.37
7.0.260.0060.00315.28
7.0.250.0080.00415.17
7.0.240.0030.00915.17
7.0.230.0040.00915.09
7.0.220.0070.01015.24
7.0.210.0100.00715.32
7.0.200.0060.00515.97
7.0.190.0030.00715.38
7.0.180.0070.00715.30
7.0.170.0000.01215.32
7.0.160.0060.00915.14
7.0.150.0000.01215.34
7.0.140.0050.04018.72
7.0.130.0080.00315.43
7.0.120.0060.01015.52
7.0.110.0030.00815.39
7.0.100.0140.03317.49
7.0.90.0220.04017.79
7.0.80.0200.04317.63
7.0.70.0250.03517.64
7.0.60.0150.02317.73
7.0.50.0210.03817.91
7.0.40.0110.03216.82
7.0.30.0080.04116.78
7.0.20.0070.03116.83
7.0.10.0070.02516.58
7.0.00.0090.02416.57
5.6.400.0040.00414.27
5.6.390.0080.00314.12
5.6.380.0040.01114.36
5.6.370.0060.00313.98
5.6.360.0000.01514.48
5.6.350.0080.00014.21
5.6.340.0000.01214.27
5.6.330.0040.00714.19
5.6.320.0000.01314.28
5.6.310.0120.00314.52
5.6.300.0060.00914.31
5.6.290.0150.00314.26
5.6.280.0040.04117.86
5.6.270.0000.01714.12
5.6.260.0090.00614.49
5.6.250.0050.02617.28
5.6.240.0100.04217.49
5.6.230.0070.04817.62
5.6.220.0070.04717.45
5.6.210.0030.02017.39
5.6.200.0070.04017.52
5.6.190.0050.04117.76
5.6.180.0100.02417.51
5.6.170.0060.03517.83
5.6.160.0020.03317.55
5.6.150.0090.04017.65
5.6.140.0050.03217.74
5.6.130.0080.04117.64
5.6.120.0070.02517.75
5.6.110.0020.02417.88
5.6.100.0050.04517.59
5.6.90.0040.02717.62
5.6.80.0050.03317.30
5.6.70.0050.04117.42
5.6.60.0070.04217.27
5.6.50.0100.03817.44
5.6.40.0090.02217.29
5.6.30.0050.04917.26
5.6.20.0140.03817.37
5.6.10.0030.02617.31
5.6.00.0050.04317.47
5.5.380.0130.03517.21
5.5.370.0060.04517.31
5.5.360.0050.04417.40
5.5.350.0050.04317.14
5.5.340.0040.03017.44
5.5.330.0070.04617.42
5.5.320.0080.02817.67
5.5.310.0070.04317.42
5.5.300.0060.04517.59
5.5.290.0110.03817.47
5.5.280.0090.04217.54
5.5.270.0070.04517.49
5.5.260.0070.02417.46
5.5.250.0050.02217.46
5.5.240.0040.02917.10
5.5.230.0100.04217.01
5.5.220.0040.04217.24
5.5.210.0030.04517.19
5.5.200.0040.04017.01
5.5.190.0050.04617.26
5.5.180.0050.04317.26
5.5.170.0030.01114.11
5.5.160.0100.04117.08
5.5.150.0080.03017.21
5.5.140.0030.04417.22
5.5.130.0090.02316.99
5.5.120.0040.03417.13
5.5.110.0060.04617.11
5.5.100.0030.04817.21
5.5.90.0050.02817.11
5.5.80.0070.03017.15
5.5.70.0040.02617.14
5.5.60.0100.03516.98
5.5.50.0050.04617.19
5.5.40.0060.03816.95
5.5.30.0070.02316.96
5.5.20.0080.03217.11
5.5.10.0080.02817.12
5.5.00.0030.03917.04
5.4.450.0100.03215.17
5.4.440.0050.02515.16
5.4.430.0060.03815.14
5.4.420.0020.04415.11
5.4.410.0030.02215.06
5.4.400.0070.03215.00
5.4.390.0050.03715.04
5.4.380.0050.02115.00
5.4.370.0000.04414.93
5.4.360.0050.04214.94
5.4.350.0070.02115.09
5.4.340.0080.03815.03
5.4.330.0000.00910.96
5.4.320.0080.03314.89
5.4.310.0080.03815.03
5.4.300.0100.04015.00
5.4.290.0000.03815.04
5.4.280.0060.04814.93
5.4.270.0050.03715.08
5.4.260.0030.02015.02
5.4.250.0070.04015.06
5.4.240.0020.04015.00
5.4.230.0050.03514.93
5.4.220.0030.02515.05
5.4.210.0020.02315.11
5.4.200.0100.03814.91
5.4.190.0080.02115.04
5.4.180.0050.03815.04
5.4.170.0100.03815.05
5.4.160.0070.04015.03
5.4.150.0030.04314.99
5.4.140.0030.03913.70
5.4.130.0030.02013.80
5.4.120.0020.02513.82
5.4.110.0020.02313.78
5.4.100.0050.02713.72
5.4.90.0050.04013.74
5.4.80.0000.04113.75
5.4.70.0030.04013.63
5.4.60.0080.03513.63
5.4.50.0090.02813.60
5.4.40.0050.03613.66
5.4.30.0080.03313.73
5.4.20.0060.03613.67
5.4.10.0040.03713.70
5.4.00.0030.01913.42
5.3.290.0030.03412.78
5.3.280.0050.04012.75
5.3.270.0030.02712.76
5.3.260.0050.03412.75
5.3.250.0030.04312.79
5.3.240.0080.04212.75
5.3.230.0050.03412.84
5.3.220.0020.04012.82
5.3.210.0080.01712.75
5.3.200.0050.02012.76
5.3.190.0070.01912.78
5.3.180.0040.04312.77
5.3.170.0090.03612.79
5.3.160.0060.04312.82
5.3.150.0100.03812.79
5.3.140.0070.02312.79
5.3.130.0020.04212.79
5.3.120.0020.02312.76
5.3.110.0130.03312.79
5.3.100.0070.03912.55
5.3.90.0060.01812.45
5.3.80.0060.03112.56
5.3.70.0050.03212.46
5.3.60.0090.03912.51
5.3.50.0020.04312.49
5.3.40.0070.03812.47
5.3.30.0090.03112.45
5.3.20.0040.01712.34
5.3.10.0030.02212.38
5.3.00.0060.01712.33
5.2.170.0070.04711.10
5.2.160.0030.04710.98
5.2.150.0030.05311.06
5.2.140.0030.03010.93
5.2.130.0070.05711.12
5.2.120.0030.06311.09
5.2.110.0030.06011.13
5.2.100.0000.06311.05
5.2.90.0070.05711.09
5.2.80.0030.06010.92
5.2.70.0000.04311.16
5.2.60.0000.03311.04
5.2.50.0030.04711.01
5.2.40.0000.03310.85
5.2.30.0130.02010.96
5.2.20.0130.04311.00
5.2.10.0000.06010.87
5.2.00.0030.02710.77
5.1.60.0030.0239.98
5.1.50.0030.02010.03
5.1.40.0030.0309.98
5.1.30.0070.03010.39
5.1.20.0030.04710.36
5.1.10.0070.03010.05
5.1.00.0030.04010.09
5.0.50.0070.0138.57
5.0.40.0100.0108.53
5.0.30.0030.0578.53
5.0.20.0000.0338.53
5.0.10.0000.0338.53
5.0.00.0030.0278.53
4.4.90.0030.0138.53
4.4.80.0000.0338.53
4.4.70.0000.0278.53
4.4.60.0000.0338.53
4.4.50.0000.0238.53
4.4.40.0000.0238.53
4.4.30.0000.0308.53
4.4.20.0000.0308.53
4.4.10.0070.0108.53
4.4.00.0100.0338.53
4.3.110.0000.0178.53
4.3.100.0030.0108.53
4.3.90.0000.0138.53
4.3.80.0000.0308.53
4.3.70.0000.0178.53
4.3.60.0000.0178.53
4.3.50.0000.0208.53
4.3.40.0000.0478.53
4.3.30.0030.0108.53
4.3.20.0000.0178.53
4.3.10.0030.0208.53
4.3.00.0000.0238.53

preferences:
43.06 ms | 400 KiB | 5 Q