3v4l.org

run code in 300+ PHP versions simultaneously
<?php function action($i){ echo ""; } $loops= 100000; $test = Array(); $test['define']=false; $test['var']=true; if($test['define']){ define('DEBUG' , true); for($i=0; $i<$loops; $i++){ if(DEBUG){ action($i); } if(!DEBUG){ action($i); } } } if($test['var']){ $DEBUG = true; for($i=0; $i<$loops; $i++){ if($DEBUG){ action($i); } if(!$DEBUG){ action($i); } } }

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.0090.01618.56
8.3.50.0080.01222.02
8.3.40.0100.00718.64
8.3.30.0130.00319.10
8.3.20.0100.00720.39
8.3.10.0060.00320.50
8.3.00.0040.01119.51
8.2.180.0130.00316.63
8.2.170.0100.00722.96
8.2.160.0120.00320.58
8.2.150.0070.00324.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00421.05
8.2.110.0040.00722.04
8.2.100.0100.00319.64
8.2.90.0030.00619.38
8.2.80.0000.01017.97
8.2.70.0060.00317.63
8.2.60.0030.00617.93
8.2.50.0030.00718.07
8.2.40.0000.00918.31
8.2.30.0060.00319.34
8.2.20.0060.00317.57
8.2.10.0090.00018.17
8.2.00.0000.00917.84
8.1.280.0170.00725.92
8.1.270.0000.00922.18
8.1.260.0060.00326.35
8.1.250.0000.00928.09
8.1.240.0040.00724.02
8.1.230.0060.00919.04
8.1.220.0100.00017.74
8.1.210.0030.00718.77
8.1.200.0030.00717.35
8.1.190.0000.01117.23
8.1.180.0000.00918.10
8.1.170.0000.01018.37
8.1.160.0030.00622.02
8.1.150.0000.01018.76
8.1.140.0030.00617.38
8.1.130.0000.01017.83
8.1.120.0000.00917.49
8.1.110.0060.00317.43
8.1.100.0000.00917.43
8.1.90.0040.00517.36
8.1.80.0060.00317.48
8.1.70.0000.00817.41
8.1.60.0030.00717.53
8.1.50.0050.00517.46
8.1.40.0030.00617.50
8.1.30.0000.01117.63
8.1.20.0070.00317.58
8.1.10.0040.00717.57
8.1.00.0040.00717.55
8.0.300.0060.00318.77
8.0.290.0090.00016.75
8.0.280.0030.00618.45
8.0.270.0030.00617.14
8.0.260.0000.00817.16
8.0.250.0030.00616.95
8.0.240.0030.00616.84
8.0.230.0000.00916.91
8.0.220.0060.00316.89
8.0.210.0040.00416.92
8.0.200.0000.00816.82
8.0.190.0000.00916.91
8.0.180.0000.01016.83
8.0.170.0000.01116.84
8.0.160.0030.00616.76
8.0.150.0000.01016.82
8.0.140.0030.00616.69
8.0.130.0000.00913.35
8.0.120.0050.00516.79
8.0.110.0000.01116.72
8.0.100.0030.00716.74
8.0.90.0040.00716.95
8.0.80.0030.01616.91
8.0.70.0000.01016.76
8.0.60.0000.01016.84
8.0.50.0070.00316.75
8.0.30.0110.01117.12
8.0.20.0130.00817.40
8.0.10.0000.01016.91
8.0.00.0040.01816.58
7.4.330.0000.00715.00
7.4.320.0000.00816.41
7.4.300.0000.00916.51
7.4.290.0030.00716.42
7.4.280.0040.00716.45
7.4.270.0000.01016.54
7.4.260.0030.00716.59
7.4.250.0000.01016.57
7.4.240.0050.00516.62
7.4.230.0030.00616.52
7.4.220.0060.01516.70
7.4.210.0070.01016.58
7.4.200.0060.00316.59
7.4.160.0100.01616.53
7.4.150.0140.00717.40
7.4.140.0100.01017.86
7.4.130.0140.01016.52
7.4.120.0130.00916.53
7.4.110.0040.01716.61
7.4.100.0110.01516.38
7.4.90.0070.01416.43
7.4.80.0080.01619.39
7.4.70.0040.02416.75
7.4.60.0030.01916.48
7.4.50.0060.00616.61
7.4.40.0080.01216.64
7.4.30.0170.01016.63
7.4.00.0090.01215.03
7.3.330.0030.00613.14
7.3.320.0030.00513.23
7.3.310.0070.00316.35
7.3.300.0060.00316.16
7.3.290.0100.01416.26
7.3.280.0080.01116.33
7.3.270.0100.01317.40
7.3.260.0110.01616.67
7.3.250.0100.01016.40
7.3.240.0060.02116.39
7.3.230.0070.01316.40
7.3.210.0130.01616.50
7.3.200.0040.01819.39
7.3.190.0090.01816.32
7.3.180.0100.01016.51
7.3.170.0000.02016.38
7.3.160.0100.01016.66
7.3.120.0030.01614.59
7.3.110.0110.01114.82
7.3.100.0030.01714.96
7.3.90.0100.01014.74
7.3.80.0030.01714.96
7.3.70.0070.01014.86
7.3.60.0120.00614.82
7.3.50.0030.01314.80
7.3.40.0030.01014.80
7.3.30.0070.01414.85
7.3.20.0030.01316.80
7.3.10.0090.00316.62
7.3.00.0000.01516.50
7.2.330.0090.01216.91
7.2.320.0070.02116.57
7.2.310.0130.01216.79
7.2.300.0100.01016.46
7.2.290.0120.00916.88
7.2.250.0140.00714.77
7.2.240.0030.02015.35
7.2.230.0030.01615.25
7.2.220.0070.01115.09
7.2.210.0130.00315.02
7.2.200.0060.01114.92
7.2.190.0070.01115.05
7.2.180.0060.00914.95
7.2.170.0030.01115.14
7.1.330.0120.01515.80
7.1.320.0030.02315.79
7.1.310.0050.02015.72
7.1.300.0070.02115.80
7.1.290.0040.02115.83
7.1.280.0070.02015.66
7.1.270.0000.02316.04
7.1.260.0070.02015.93
7.1.70.0070.00716.98
7.1.60.0040.01117.20
7.1.50.0040.01416.91
7.1.00.0070.08022.44
7.0.200.0060.01916.82
7.0.140.0070.07322.11
7.0.60.0100.08719.94
7.0.50.0100.08717.94
7.0.40.0130.04020.20
7.0.30.0270.08320.25
7.0.20.0130.04720.06
7.0.10.0000.05020.15
7.0.00.0030.04720.12
5.6.280.0000.09320.99
5.6.210.0100.08320.61
5.6.200.0030.07318.18
5.6.190.0030.10020.55
5.6.180.0470.08320.39
5.6.170.0370.07720.39
5.6.160.0170.07020.54
5.6.150.0030.10018.17
5.6.140.0100.05318.23
5.6.130.0070.09018.14
5.6.120.0030.08720.75
5.6.110.0000.09721.02
5.6.100.0030.10020.97
5.6.90.0000.09320.98
5.6.80.0070.09720.38
5.5.350.0130.10320.41
5.5.340.0130.09317.92
5.5.330.0170.08720.27
5.5.320.0300.05720.31
5.5.310.0170.04720.30
5.5.300.0000.07017.95
5.5.290.0130.08318.02
5.5.280.0100.09720.75
5.5.270.0030.05020.63
5.5.260.0000.08720.95
5.5.250.0130.09020.69
5.5.240.0100.09020.23
5.4.450.0300.05719.49
5.4.440.0100.06719.42
5.4.430.0200.05719.39
5.4.420.0730.05319.48
5.4.410.0400.06019.44
5.4.400.0430.05718.95
5.4.390.0470.05719.18
5.4.380.0400.07018.50
5.4.370.0830.08018.52
5.4.360.0370.10018.62
5.4.350.0400.10318.81
5.4.340.0330.07018.63
5.4.320.0070.04812.50
5.4.310.0110.04612.50
5.4.300.0110.04312.50
5.4.290.0050.06012.50
5.4.280.0120.04412.39
5.4.270.0030.05212.39
5.4.260.0070.04812.39
5.4.250.0100.04812.40
5.4.240.0050.04812.39
5.4.230.0050.04812.39
5.4.220.0040.05512.39
5.4.210.0060.05212.39
5.4.200.0040.05112.39
5.4.190.0070.04712.39
5.4.180.0030.05012.39
5.4.170.0080.04312.39
5.4.160.0050.04812.39
5.4.150.0060.05412.38
5.4.140.0060.05112.07
5.4.130.0090.05112.05
5.4.120.0120.04512.02
5.4.110.0050.05112.00
5.4.100.0080.05012.01
5.4.90.0070.06412.01
5.4.80.0060.05112.01
5.4.70.0080.05612.00
5.4.60.0090.05612.00
5.4.50.0060.04512.00
5.4.40.0070.04311.99
5.4.30.0040.05111.99
5.4.20.0040.04611.99
5.4.10.0070.04511.99
5.4.00.0060.04811.48
5.3.290.0060.05212.80
5.3.280.0060.05012.71
5.3.270.0050.05412.72
5.3.260.0070.05112.72
5.3.250.0060.04812.72
5.3.240.0050.05112.72
5.3.230.0060.05312.71
5.3.220.0050.05412.68
5.3.210.0090.05012.68
5.3.200.0060.05012.68
5.3.190.0080.05212.68
5.3.180.0080.04812.67
5.3.170.0070.04912.67
5.3.160.0060.05312.67
5.3.150.0090.05012.67
5.3.140.0040.05512.66
5.3.130.0100.05412.66
5.3.120.0070.05312.66
5.3.110.0030.05612.66
5.3.100.0080.05412.13
5.3.90.0080.05812.10
5.3.80.0040.05212.09
5.3.70.0060.05812.09
5.3.60.0080.05312.07
5.3.50.0070.05712.02
5.3.40.0070.05412.02
5.3.30.0060.05111.98
5.3.20.0070.05111.77
5.3.10.0060.05111.73
5.3.00.0040.05211.71
5.2.170.0040.0519.21
5.2.160.0060.0549.22
5.2.150.0030.0539.21
5.2.140.0060.0499.21
5.2.130.0030.0569.17
5.2.120.0050.0489.18
5.2.110.0060.0499.18
5.2.100.0050.0499.18
5.2.90.0030.0539.17
5.2.80.0040.0629.17
5.2.70.0040.0549.17
5.2.60.0050.0559.13
5.2.50.0060.0489.09
5.2.40.0030.0509.07
5.2.30.0050.0599.04
5.2.20.0030.0509.04
5.2.10.0030.0518.94
5.2.00.0020.0518.81
5.1.60.0020.0458.09
5.1.50.0060.0488.08
5.1.40.0050.0558.06
5.1.30.0020.0478.42
5.1.20.0060.0558.43
5.1.10.0030.0478.16
5.1.00.0040.0498.16
5.0.50.0050.0676.65
5.0.40.0040.0716.51
5.0.30.0030.0866.32
5.0.20.0030.0686.29
5.0.10.0050.0696.27
5.0.00.0040.0766.26
4.4.90.0020.0604.78
4.4.80.0010.0674.76
4.4.70.0040.0644.76
4.4.60.0030.0624.76
4.4.50.0050.0644.77
4.4.40.0040.0724.71
4.4.30.0030.0664.76
4.4.20.0020.0624.84
4.4.10.0020.0624.85
4.4.00.0030.0764.76
4.3.110.0010.0674.67
4.3.100.0030.0654.66
4.3.90.0030.0704.63
4.3.80.0030.0724.58
4.3.70.0020.0664.63
4.3.60.0050.0624.63
4.3.50.0010.0764.63
4.3.40.0040.0804.54
4.3.30.0040.0633.31
4.3.20.0040.0603.29
4.3.10.0010.0623.25
4.3.00.0030.06716.72

preferences:
39.22 ms | 401 KiB | 5 Q