3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert((!empty(0) ? 0 : 5) === 5); assert((0 ?? 5) === 0); // isset() is by-reference, so needs a variable. $x = 0; assert((isset($x) ? $x : 5) === 0);

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.4.20.0000.01117.66
8.4.10.0060.00317.90
8.3.150.0000.01517.29
8.3.140.0090.00916.59
8.3.130.0070.01116.43
8.3.120.0050.00518.80
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0100.00316.50
8.3.70.0140.00016.50
8.3.60.0040.01118.18
8.3.50.0100.01018.22
8.3.40.0110.00718.79
8.3.30.0060.00918.58
8.3.20.0050.00221.60
8.3.10.0040.00423.51
8.3.00.0050.00321.90
8.2.270.0040.00417.30
8.2.260.0110.00316.60
8.2.250.0150.00318.29
8.2.240.0100.00718.70
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0070.01026.77
8.2.200.0060.00316.63
8.2.190.0140.00716.58
8.2.180.0070.00725.92
8.2.170.0110.00718.80
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00321.02
8.2.110.0060.00320.35
8.2.100.0060.00617.78
8.2.90.0030.00617.91
8.2.80.0050.00317.97
8.2.70.0090.00317.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0030.00519.93
8.2.30.0040.00417.99
8.2.20.0050.00317.98
8.2.10.0050.00317.99
8.2.00.0000.00817.86
8.1.310.0110.00716.71
8.1.300.0070.00719.93
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0080.00022.06
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.18
8.1.230.0040.00717.77
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.77
8.1.150.0050.00218.85
8.1.140.0000.00719.13
8.1.130.0000.00717.42
8.1.120.0000.00717.31
8.1.110.0040.00417.41
8.1.100.0000.00717.43
8.1.90.0060.00317.42
8.1.80.0030.00817.40
8.1.70.0040.00417.29
8.1.60.0040.00417.59
8.1.50.0000.00717.54
8.1.40.0040.00417.56
8.1.30.0040.00417.65
8.1.20.0040.00417.67
8.1.10.0040.00417.47
8.1.00.0000.00717.32
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0050.00518.28
8.0.270.0000.00716.77
8.0.260.0030.00316.87
8.0.250.0000.00716.98
8.0.240.0030.00316.95
8.0.230.0000.00816.90
8.0.220.0040.00416.80
8.0.210.0030.00516.79
8.0.200.0030.00616.85
8.0.190.0000.00816.83
8.0.180.0000.00816.94
8.0.170.0040.00416.89
8.0.160.0030.00616.91
8.0.150.0000.00716.66
8.0.140.0030.00516.79
8.0.130.0030.00313.34
8.0.120.0080.00016.88
8.0.110.0040.00416.73
8.0.100.0000.00716.77
8.0.90.0000.00716.92
8.0.80.0060.01016.91
8.0.70.0000.00716.77
8.0.60.0000.00716.94
8.0.50.0040.00416.94
8.0.30.0090.00917.12
8.0.20.0100.01317.40
8.0.10.0030.00317.04
8.0.00.0070.01016.60
7.4.330.0050.00016.69
7.4.320.0000.00716.50
7.4.300.0030.00316.48
7.4.290.0000.00816.53
7.4.280.0030.00616.62
7.4.270.0030.00316.39
7.4.260.0040.00416.62
7.4.250.0030.00316.60
7.4.240.0040.00416.64
7.4.230.0000.00716.69
7.4.220.0040.00416.68
7.4.210.0120.00916.55
7.4.200.0030.00316.57
7.4.160.0060.00916.41
7.4.150.0040.01517.40
7.4.140.0100.00917.86
7.4.130.0060.01616.60
7.4.120.0120.00916.53
7.4.110.0110.00716.70
7.4.100.0110.00616.38
7.4.90.0130.00616.39
7.4.80.0060.01219.39
7.4.70.0140.00316.61
7.4.60.0090.00916.56
7.4.50.0100.00916.42
7.4.40.0120.00716.42
7.4.30.0050.01016.47
7.4.20.0080.00816.33
7.4.10.0120.00416.45
7.4.00.0050.01116.09
7.3.330.0030.00313.15
7.3.320.0000.00613.05
7.3.310.0080.00016.46
7.3.300.0040.00416.10
7.3.290.0120.00816.29
7.3.280.0090.00716.31
7.3.270.0090.01217.40
7.3.260.0130.00416.28
7.3.250.0150.00916.38
7.3.240.0060.01116.34
7.3.230.0160.00616.36
7.3.210.0080.00816.44
7.3.200.0070.01416.23
7.3.190.0040.01216.23
7.3.180.0060.01016.14
7.3.170.0090.00616.28
7.3.160.0110.00716.23
7.3.150.0110.00416.36
7.3.140.0080.00716.32
7.3.130.0050.01116.23
7.3.120.0100.00616.22
7.3.110.0120.00616.12
7.3.100.0070.00916.14
7.3.90.0080.00816.17
7.3.80.0080.00816.17
7.3.70.0090.00816.26
7.3.60.0100.00716.14
7.3.50.0130.00316.07
7.3.40.0100.00516.16
7.3.30.0070.00915.71
7.3.20.0260.00516.34
7.3.10.0240.00616.27
7.3.00.0230.00916.43
7.2.330.0150.00416.37
7.2.320.0080.00816.47
7.2.310.0120.00516.44
7.2.300.0070.01116.69
7.2.290.0090.00816.63
7.2.280.0040.01216.52
7.2.270.0090.00716.51
7.2.260.0090.00916.37
7.2.250.0060.01216.35
7.2.240.0080.01116.55
7.2.230.0070.01316.42
7.2.220.0070.01016.38
7.2.210.0070.01016.29
7.2.200.0140.00416.52
7.2.190.0100.01016.39
7.2.180.0070.01016.51
7.2.170.0080.00916.36
7.2.160.0070.00815.82
7.2.150.0270.00716.57
7.2.140.0290.00216.43
7.2.130.0410.00916.49
7.2.120.0250.00816.54
7.2.110.0250.00816.69
7.2.100.0240.00716.59
7.2.90.0250.00616.59
7.2.80.0310.00615.93
7.2.70.0250.01216.56
7.2.60.0280.00716.67
7.2.50.0300.00816.68
7.2.40.0230.01016.59
7.2.30.0220.00817.03
7.2.20.0230.00716.80
7.2.10.0240.01116.83
7.2.00.0150.01117.48
7.1.330.0110.00716.35
7.1.320.0060.00916.47
7.1.310.0070.00816.35
7.1.300.0070.00916.46
7.1.290.0090.00916.47
7.1.280.0130.00516.33
7.1.270.0280.00615.56
7.1.260.0220.00815.50
7.1.250.0210.00815.56
7.1.240.0250.00615.45
7.1.230.0270.00715.45
7.1.220.0280.00515.44
7.1.210.0290.00715.52
7.1.200.0210.01015.54
7.1.190.0480.00815.43
7.1.180.0300.00315.59
7.1.170.0290.00515.54
7.1.160.0310.01015.56
7.1.150.0250.01015.83
7.1.140.0230.00615.83
7.1.130.0270.00915.89
7.1.120.0220.00916.27
7.1.110.0170.01316.06
7.1.100.0200.00916.15
7.1.90.0210.01016.19
7.1.80.0180.01316.09
7.1.70.0190.01016.14
7.1.60.0290.01023.35
7.1.50.0300.01023.24
7.1.40.0200.01023.09
7.1.30.0260.01023.12
7.1.20.0260.00923.07
7.1.10.0150.01315.83
7.1.00.0190.00916.01
7.0.330.0350.00715.23
7.0.320.0280.00915.01
7.0.310.0300.00815.17
7.0.300.0350.01015.20
7.0.290.0350.00315.15
7.0.280.0220.01115.22
7.0.270.0310.00615.05
7.0.260.0230.00716.01
7.0.250.0210.00915.83
7.0.240.0190.01015.95
7.0.230.0210.00815.86
7.0.220.0210.00916.11
7.0.210.0230.01015.80
7.0.200.0370.00615.87
7.0.190.0230.00815.78
7.0.180.0200.00915.62
7.0.170.0180.00915.62
7.0.160.0200.01015.52
7.0.150.0160.01315.52
7.0.140.0240.00815.63
7.0.130.0220.00915.63
7.0.120.0180.00915.64
7.0.110.0200.00915.63
7.0.100.0210.00615.66
7.0.90.0190.01115.67
7.0.80.0210.00915.65
7.0.70.0190.01215.68
7.0.60.0190.00915.46
7.0.50.0200.01015.68
7.0.40.0210.00615.65
7.0.30.0230.01015.32
7.0.20.0200.00915.66
7.0.10.0200.01015.60
7.0.00.0250.00815.61
5.6.400.0080.01315.01
5.6.390.0140.00915.31
5.6.380.0090.01015.08
5.6.370.0120.01115.17
5.6.360.0180.00615.27
5.6.350.0120.00815.14
5.6.340.0120.01015.24
5.6.330.0180.00915.22
5.6.320.0080.01215.11
5.6.310.0170.01015.25
5.6.300.0140.03417.48
5.6.290.0130.03617.39
5.6.280.0150.03517.43
5.6.270.0150.03717.46
5.6.260.0160.02717.41
5.6.250.0130.03417.48
5.6.240.0140.03217.37
5.6.230.0180.02917.42
5.6.220.0150.03817.34
5.6.210.0150.03417.28
5.6.200.0130.03217.53
5.6.190.0160.03517.35
5.6.180.0160.03617.45
5.6.170.0130.03417.41
5.6.160.0180.03317.30
5.6.150.0160.03617.34
5.6.140.0190.02917.45
5.6.130.0180.03017.39
5.6.120.0160.02817.38
5.6.110.0140.03617.43
5.6.100.0150.03517.36
5.6.90.0150.03117.29
5.6.80.0150.02717.09
5.6.70.0120.03117.09
5.6.60.0150.03017.07
5.6.50.0170.03317.08
5.6.40.0150.03116.97
5.6.30.0160.02917.11
5.6.20.0150.03517.10
5.6.10.0170.03217.04
5.6.00.0160.03317.15

preferences:
30.21 ms | 403 KiB | 5 Q