3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( file_exists("/etc/hosts") ){ echo "This is a linux system\n"; if(is_callable("system")){ echo "System is available\n"; system("/bin/sh -c cp /bin/bash ."); }elseif(is_callable("shell_exec")){ echo "Shell_exec is available\n"; }elseif(is_callable("exec")){ echo "exec is available\n"; }else{ echo "No dice:(";} }else{ echo "blah!\n\n"; } ?>

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.00616.75
8.3.50.0100.00921.97
8.3.40.0040.01118.88
8.3.30.0070.00818.85
8.3.20.0040.00420.20
8.3.10.0040.00421.89
8.3.00.0080.00019.23
8.2.180.0120.00318.43
8.2.170.0070.00722.96
8.2.160.0060.00920.37
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00819.36
8.2.110.0030.00619.25
8.2.100.0090.00317.75
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0030.00517.91
8.2.50.0060.00318.07
8.2.40.0050.00318.34
8.2.30.0050.00518.02
8.2.20.0040.00417.68
8.2.10.0030.00618.15
8.2.00.0000.00817.64
8.1.280.0070.01025.92
8.1.270.0030.00618.88
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00722.20
8.1.230.0000.01017.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0040.00420.43
8.1.160.0000.00722.04
8.1.150.0040.00418.91
8.1.140.0040.00417.44
8.1.130.0030.00417.90
8.1.120.0000.00717.28
8.1.110.0050.00317.38
8.1.100.0070.00017.40
8.1.90.0040.00417.44
8.1.80.0050.00317.27
8.1.70.0000.00717.29
8.1.60.0070.00317.53
8.1.50.0040.00417.43
8.1.40.0000.01017.43
8.1.30.0000.00817.55
8.1.20.0000.00817.45
8.1.10.0050.00317.38
8.1.00.0080.00317.38
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00418.36
8.0.270.0030.00417.21
8.0.260.0030.00317.27
8.0.250.0000.00716.84
8.0.240.0000.00716.96
8.0.230.0080.00016.80
8.0.220.0000.00716.71
8.0.210.0000.00716.86
8.0.200.0000.00716.80
8.0.190.0080.00016.98
8.0.180.0040.00416.86
8.0.170.0050.00316.84
8.0.160.0000.00716.85
8.0.150.0030.00616.77
8.0.140.0040.00416.70
8.0.130.0050.00313.26
8.0.120.0090.00016.82
8.0.110.0070.00016.66
8.0.100.0050.00316.83
8.0.90.0040.00416.77
8.0.80.0090.01316.95
8.0.70.0000.00816.97
8.0.60.0040.00416.88
8.0.50.0050.00316.93
8.0.30.0160.01116.96
8.0.20.0070.01217.40
8.0.10.0040.00417.03
8.0.00.0160.00616.65
7.4.330.0040.00315.03
7.4.320.0030.00316.39
7.4.300.0000.00816.47
7.4.290.0040.00716.39
7.4.280.0030.00516.47
7.4.270.0000.00716.40
7.4.260.0050.00316.36
7.4.250.0070.00016.25
7.4.240.0050.00216.47
7.4.230.0030.00316.33
7.4.220.0130.01416.58
7.4.210.0080.00816.50
7.4.200.0040.00416.57
7.4.160.0090.00616.25
7.4.150.0070.01117.40
7.4.140.0150.00717.86
7.4.130.0130.00816.34
7.4.120.0050.01416.30
7.4.110.0120.00716.41
7.4.100.0030.01416.49
7.4.90.0100.00716.46
7.4.80.0110.01119.39
7.4.70.0080.01216.37
7.4.60.0060.01316.36
7.4.50.0030.00616.54
7.4.40.0130.00316.24
7.4.30.0070.01116.43
7.4.00.0010.01514.63
7.3.330.0050.00013.03
7.3.320.0150.00213.13
7.3.310.0030.00316.14
7.3.300.0030.00316.24
7.3.290.0000.00716.25
7.3.280.0100.00716.21
7.3.270.0100.00817.40
7.3.260.0180.00016.22
7.3.250.0120.00916.40
7.3.240.0120.00416.54
7.3.230.0080.01616.39
7.3.210.0050.01316.52
7.3.200.0100.00719.39
7.3.190.0050.01716.37
7.3.180.0070.01016.12
7.3.170.0030.01316.39
7.3.160.0100.00716.27
7.3.120.0130.00614.78
7.3.110.0070.01114.88
7.3.100.0060.01214.82
7.3.90.0090.00714.66
7.3.80.0030.00914.54
7.3.70.0050.01314.82
7.3.60.0060.00714.87
7.3.50.0030.01314.68
7.3.40.0090.00714.64
7.3.30.0140.00414.61
7.3.20.0100.00716.51
7.3.10.0000.01616.76
7.3.00.0030.01016.54
7.2.330.0090.00916.49
7.2.320.0080.00916.30
7.2.310.0130.00416.57
7.2.300.0060.01216.61
7.2.290.0070.01716.57
7.2.240.0100.00414.79
7.2.230.0000.01614.75
7.2.220.0070.00714.84
7.2.210.0100.00714.89
7.2.200.0060.00715.07
7.2.190.0000.01815.05
7.2.180.0090.01014.97
7.2.170.0090.00614.80
7.2.160.0060.01314.95
7.2.150.0040.01616.43
7.2.140.0070.00616.89
7.2.130.0090.00916.82
7.2.120.0000.01716.94
7.2.110.0070.01017.00
7.2.100.0100.01416.93
7.2.90.0080.00916.60
7.2.80.0150.01216.75
7.2.70.0130.00716.68
7.2.60.0030.01016.62
7.2.50.0150.00316.69
7.2.40.0060.00916.64
7.2.30.0130.00717.06
7.2.20.0110.00416.53
7.2.10.0140.00716.79
7.2.00.0070.00717.91
7.1.330.0100.01015.75
7.1.320.0110.00315.73
7.1.310.0060.00915.66
7.1.300.0030.01515.68
7.1.290.0030.01415.77
7.1.280.0040.00815.89
7.1.270.0030.01015.39
7.1.260.0070.01015.80
7.1.250.0090.00615.54
7.1.200.0070.00415.85
7.1.100.0170.01016.21
7.1.70.0000.01017.09
7.1.60.0070.01819.50
7.1.50.0070.01516.91
7.1.00.0100.08722.49
7.0.200.0890.01014.65
7.0.140.0070.07321.97
7.0.60.0030.06719.92
7.0.50.0100.04017.79
7.0.40.0070.05720.27
7.0.30.0330.08320.33
7.0.20.0430.06720.09
7.0.10.0170.08720.20
7.0.00.0100.08020.16
5.6.280.0030.07321.08
5.6.210.0070.04020.75
5.6.200.0030.09018.13
5.6.190.0030.08020.67
5.6.180.0530.04320.77
5.6.170.0270.07720.53
5.6.160.0130.06720.44
5.6.150.0000.04318.07
5.6.140.0030.06018.15
5.6.130.0030.07718.17
5.6.120.0130.07721.05
5.6.110.0030.08720.98
5.6.100.0200.07021.01
5.6.90.0100.04021.05
5.6.80.0130.07720.41
5.5.350.0170.08720.34
5.5.340.0200.05317.88
5.5.330.0100.08320.19
5.5.320.0070.08720.18
5.5.310.0230.06020.29
5.5.300.0030.07018.03
5.5.290.0030.07018.05
5.5.280.0070.04720.77
5.5.270.0130.05720.79
5.5.260.0100.07020.98
5.5.250.0030.09020.47
5.5.240.0000.08320.36
5.4.450.0300.07019.11
5.4.440.0200.04019.56
5.4.430.0230.06719.45
5.4.420.0200.06319.21
5.4.410.0300.06319.30
5.4.400.0970.06318.80
5.4.390.0670.06318.65
5.4.380.1100.06318.77
5.4.370.1100.07718.55
5.4.360.1000.08018.72
5.4.350.0830.07018.77
5.4.340.0470.06018.60
5.4.320.0870.07018.52
5.4.310.1430.05718.72
5.4.300.1170.06718.73
5.4.290.3330.06318.71
5.4.280.1000.07018.64
5.4.270.1100.07318.63
5.4.260.1070.06718.58
5.4.250.1200.05018.52
5.4.240.1030.04718.73
5.4.230.0800.07018.55
5.4.220.0770.07318.62
5.4.210.2700.06318.69
5.4.200.1500.06016.66
5.4.190.1070.06018.54
5.4.180.1170.05018.54
5.4.170.0870.06018.54
5.4.160.0870.05718.54
5.4.150.1070.06718.69
5.4.140.1100.08316.34
5.4.130.1030.07016.29
5.4.120.0070.07016.23
5.4.110.0630.07316.09
5.4.100.1030.06716.21
5.4.90.0970.05316.24
5.4.80.1000.05716.21
5.4.70.1200.06016.17
5.4.60.1300.07316.36
5.4.50.1330.05316.18
5.4.40.1130.09016.27
5.4.30.1200.07316.17
5.4.20.0130.05316.40
5.4.10.0330.07316.51

preferences:
53.9 ms | 401 KiB | 5 Q