3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; $b = false; $c = true; $d = [ ($a ? "a":null), ($b ? "b":null), ($c ? "c":null), ]; var_dump($d);

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.00718.43
8.3.50.0120.00916.46
8.3.40.0000.01418.75
8.3.30.0100.00718.60
8.3.20.0080.00020.23
8.3.10.0000.00821.78
8.3.00.0040.00420.94
8.2.180.0140.00418.18
8.2.170.0140.00022.96
8.2.160.0070.00722.13
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00722.16
8.2.120.0030.00526.35
8.2.110.0110.00022.20
8.2.100.0040.00817.73
8.2.90.0000.00819.18
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.92
8.2.50.0030.00618.10
8.2.40.0060.00322.08
8.2.30.0040.00421.16
8.2.20.0050.00218.03
8.2.10.0000.00718.16
8.2.00.0000.00718.09
8.1.280.0060.00925.92
8.1.270.0080.00023.87
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.88
8.1.230.0030.01119.01
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0050.00318.96
8.1.150.0040.00420.68
8.1.140.0040.00419.42
8.1.130.0000.00718.93
8.1.120.0000.00917.43
8.1.110.0040.00417.45
8.1.100.0020.00517.51
8.1.90.0040.00417.40
8.1.80.0000.00817.50
8.1.70.0040.00417.50
8.1.60.0050.00217.64
8.1.50.0040.00417.48
8.1.40.0030.00617.53
8.1.30.0060.00317.50
8.1.20.0040.00417.68
8.1.10.0000.00917.43
8.1.00.0000.00817.32
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0040.00317.17
8.0.260.0000.00616.81
8.0.250.0000.00716.85
8.0.240.0070.00016.78
8.0.230.0040.00416.96
8.0.220.0000.00716.84
8.0.210.0060.00016.90
8.0.200.0000.00716.83
8.0.190.0080.00016.89
8.0.180.0030.00616.81
8.0.170.0000.00816.91
8.0.160.0030.00616.91
8.0.150.0000.00716.77
8.0.140.0020.00516.82
8.0.130.0070.00013.26
8.0.120.0070.00016.86
8.0.110.0080.00016.83
8.0.100.0000.00716.75
8.0.90.0070.00016.77
8.0.80.0070.00716.84
8.0.70.0000.00816.90
8.0.60.0030.00516.85
8.0.50.0000.00716.77
8.0.30.0080.01116.98
8.0.20.0070.01117.40
8.0.10.0030.00617.01
8.0.00.0000.01816.79
7.4.330.0050.00015.55
7.4.320.0000.00616.60
7.4.300.0000.00616.45
7.4.290.0070.00016.39
7.4.280.0030.00616.58
7.4.270.0000.00716.57
7.4.260.0000.00716.61
7.4.250.0000.00716.47
7.4.240.0000.00816.55
7.4.230.0000.00716.47
7.4.220.0090.00916.54
7.4.210.0110.00416.53
7.4.200.0030.00316.66
7.4.160.0070.01316.48
7.4.150.0100.01017.40
7.4.140.0100.01017.86
7.4.130.0160.00816.56
7.4.120.0070.01316.49
7.4.110.0070.01116.39
7.4.100.0120.00916.43
7.4.90.0060.01316.61
7.4.80.0060.01319.39
7.4.70.0120.00316.73
7.4.60.0060.00916.70
7.4.50.0040.01116.42
7.4.40.0050.01116.55
7.4.30.0070.01016.43
7.4.00.0100.00714.91
7.3.330.0060.00013.10
7.3.320.0050.00012.99
7.3.310.0000.00716.25
7.3.300.0000.00716.13
7.3.290.0000.00716.22
7.3.280.0100.00716.19
7.3.270.0130.00417.40
7.3.260.0130.00716.25
7.3.250.0100.01116.21
7.3.240.0130.00416.29
7.3.230.0080.00816.50
7.3.210.0030.01216.21
7.3.200.0120.00916.20
7.3.190.0090.00616.29
7.3.180.0150.00016.35
7.3.170.0130.00316.07
7.3.160.0080.00816.57
7.3.120.0070.01014.79
7.3.110.0030.01314.80
7.3.100.0060.00614.60
7.3.90.0000.01014.86
7.3.80.0070.00714.83
7.3.70.0100.00314.61
7.3.60.0070.00814.64
7.3.50.0000.01414.75
7.3.40.0090.00914.56
7.3.30.0030.01014.57
7.3.20.0000.01116.63
7.3.10.0060.00616.54
7.3.00.0080.00416.64
7.2.330.0100.00716.63
7.2.320.0080.00816.36
7.2.310.0100.00716.74
7.2.300.0090.00916.56
7.2.290.0040.01816.37
7.2.250.0090.01214.84
7.2.240.0070.01314.84
7.2.230.0070.00715.00
7.2.220.0060.00315.13
7.2.210.0000.01414.91
7.2.200.0040.00714.66
7.2.190.0060.01014.59
7.2.180.0060.01315.00
7.2.170.0060.00914.64
7.2.00.0110.00719.41
7.1.330.0070.00715.94
7.1.320.0030.00715.80
7.1.310.0080.00315.86
7.1.300.0060.01215.83
7.1.290.0090.00615.65
7.1.280.0040.00815.53
7.1.270.0070.00415.85
7.1.260.0000.01715.75
7.1.100.0030.00918.25
7.1.70.0030.00317.14
7.1.60.0600.01733.35
7.1.50.0370.01732.68
7.1.40.0430.01032.52
7.1.30.1070.00732.63
7.1.20.0670.01332.81
7.1.10.0330.01014.48
7.1.00.0430.01314.85
7.0.200.0330.00714.65
7.0.190.0430.01014.75
7.0.180.0500.01314.26
7.0.170.0500.01014.48
7.0.160.0630.00714.54
7.0.150.0330.01014.11
7.0.140.0370.01014.43
7.0.130.0330.01014.54
7.0.120.0300.01314.47
7.0.110.0370.00714.37
7.0.100.0330.01014.53
7.0.90.0300.01014.55
7.0.80.0400.01314.50
7.0.70.0330.01014.30
7.0.60.0300.01314.26
7.0.50.0470.01314.39
7.0.40.0430.02014.54
7.0.30.0470.01714.77
7.0.20.0300.01014.52
7.0.10.0330.01314.72
7.0.00.0370.01014.46

preferences:
43.63 ms | 400 KiB | 5 Q