3v4l.org

run code in 300+ PHP versions simultaneously
<?php $img = ["-1" => "/images/image2.jpg", "0" => "/images/image3.jpg", "1" => "/images/image1.jmp"]; $number = 0; Echo ($number == 0 ? $img[$number] : $img[$number/abs($number)]);

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.130.0100.01018.48
8.3.120.0060.00320.71
8.3.110.0000.01018.28
8.3.100.0090.01116.64
8.3.90.0000.00816.70
8.3.80.0060.00317.97
8.3.70.0100.01018.40
8.3.60.0070.00718.05
8.3.50.0080.00618.30
8.3.40.0150.00318.73
8.3.30.0110.00418.50
8.3.20.0040.00418.52
8.3.10.0040.00421.04
8.3.00.0000.00823.48
8.2.250.0050.00316.67
8.2.240.0060.00317.09
8.2.230.0060.00320.94
8.2.220.0030.00524.06
8.2.210.0090.00026.77
8.2.200.0100.00018.16
8.2.190.0080.00816.58
8.2.180.0070.01416.38
8.2.170.0030.01022.96
8.2.160.0130.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.83
8.2.120.0080.00026.35
8.2.110.0100.01322.25
8.2.100.0090.00317.96
8.2.90.0050.00318.05
8.2.80.0000.00820.51
8.2.70.0030.00617.63
8.2.60.0050.00217.63
8.2.50.0040.00417.75
8.2.40.0050.00519.35
8.2.30.0040.00419.45
8.2.20.0000.00818.14
8.2.10.0000.00717.86
8.2.00.0030.00319.36
8.1.300.0040.00417.86
8.1.290.0060.00318.88
8.1.280.0100.00725.92
8.1.270.0080.00020.25
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0070.00420.89
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00925.91
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0050.00317.62
8.1.160.0000.00718.88
8.1.150.0030.00318.88
8.1.140.0040.00417.65
8.1.130.0000.00719.07
8.1.120.0000.00717.45
8.1.110.0060.00317.42
8.1.100.0000.00817.35
8.1.90.0040.00417.32
8.1.80.0000.00717.34
8.1.70.0030.00617.35
8.1.60.0000.00817.63
8.1.50.0030.00617.55
8.1.40.0070.00017.46
8.1.30.0060.00317.65
8.1.20.0040.00417.64
8.1.10.0050.00217.47
8.1.00.0000.00717.38
8.0.300.0030.00320.10
8.0.290.0000.00716.88
8.0.280.0000.00718.43
8.0.270.0000.00716.82
8.0.260.0000.00617.25
8.0.250.0040.00416.80
8.0.240.0030.00516.94
8.0.230.0070.00216.82
8.0.220.0030.00616.78
8.0.210.0000.00716.80
8.0.200.0030.00316.86
8.0.190.0090.00016.84
8.0.180.0000.00816.82
8.0.170.0040.00416.89
8.0.160.0070.00016.91
8.0.150.0070.00016.82
8.0.140.0050.00316.67
8.0.130.0090.00013.22
8.0.120.0040.00416.68
8.0.110.0000.00716.79
8.0.100.0030.00616.88
8.0.90.0040.00416.61
8.0.80.0110.00816.82
8.0.70.0080.00016.70
8.0.60.0000.00716.77
8.0.50.0050.00216.94
8.0.30.0110.00617.05
8.0.20.0100.01017.40
8.0.10.0030.00616.83
8.0.00.0080.01016.63
7.4.330.0030.00315.55
7.4.320.0000.00616.45
7.4.300.0000.00616.50
7.4.290.0070.00016.56
7.4.280.0000.00816.47
7.4.270.0030.00316.60
7.4.260.0030.00316.50
7.4.250.0050.00316.44
7.4.240.0030.00316.58
7.4.230.0000.00716.47
7.4.220.0030.00516.38
7.4.210.0060.00816.55
7.4.200.0000.00716.30
7.4.140.0070.01517.86
7.4.130.0140.00816.57
7.4.120.0100.01016.50
7.4.110.0120.00616.54
7.4.100.0100.00716.46
7.4.90.0140.00616.48
7.4.80.0040.01319.39
7.4.70.0130.00316.57
7.4.60.0030.01216.40
7.4.50.0040.01116.46
7.4.40.0120.01016.53
7.4.00.0070.01114.82
7.3.330.0000.00513.01
7.3.320.0060.00013.07
7.3.310.0070.00016.08
7.3.300.0030.00416.30
7.3.290.0070.00016.27
7.3.280.0060.01116.25
7.3.260.0090.01216.37
7.3.240.0080.01016.41
7.3.230.0110.00516.49
7.3.210.0130.00316.63
7.3.200.0060.01216.45
7.3.190.0030.01316.55
7.3.180.0130.00716.39
7.3.170.0150.00616.37
7.3.160.0090.01316.30
7.3.120.0110.00814.91
7.3.110.0090.00614.89
7.3.100.0050.00914.71
7.3.90.0050.01014.97
7.3.80.0080.00514.77
7.3.70.0120.00314.86
7.3.60.0080.00714.83
7.3.50.0070.00514.92
7.3.40.0100.00314.78
7.3.30.0010.01114.65
7.3.20.0090.00416.62
7.3.10.0060.00716.62
7.3.00.0020.01116.72
7.2.330.0070.01016.46
7.2.320.0180.00416.47
7.2.310.0070.01116.32
7.2.300.0060.00916.78
7.2.290.0130.01016.78
7.2.250.0070.01215.12
7.2.240.0070.01315.06
7.2.230.0050.00915.02
7.2.220.0070.00714.98
7.2.210.0030.01314.86
7.2.200.0070.00714.73
7.2.190.0050.00814.94
7.2.180.0040.01115.00
7.2.170.0050.00914.81
7.2.60.3520.00414.91
7.2.50.3340.00514.68
7.2.40.0440.00815.36
7.2.30.0120.01415.46
7.2.20.2490.01115.52
7.2.10.2430.01015.44
7.2.00.2620.00915.45
7.1.330.0070.00815.53
7.1.320.0040.00715.68
7.1.310.0080.00515.70
7.1.300.0070.00715.75
7.1.290.0040.01015.63
7.1.280.0070.00815.76
7.1.270.0060.00615.80
7.1.260.0070.00815.70
7.1.200.0100.00315.73
7.1.170.2980.00913.78
7.1.160.1960.01016.81
7.1.150.0520.01116.91
7.1.140.2320.00816.53
7.1.130.2810.01016.65
7.1.120.1240.01116.75
7.1.110.0150.01216.32
7.1.100.0520.01216.20
7.1.90.1890.01116.32
7.1.80.3630.00915.83
7.1.70.2060.00914.97
7.1.60.2110.01233.14
7.1.50.2130.01432.74
7.1.40.2070.01132.63
7.1.30.1390.01732.77
7.1.20.2330.01432.63
7.1.10.1970.00914.67
7.1.00.1860.01014.66

preferences:
68.48 ms | 403 KiB | 5 Q