3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Active assert and make it quiet assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_WARNING, 0); assert_options(ASSERT_QUIET_EVAL, 1); // Create a handler function function my_assert_handler($file, $line, $code, $desc = null) { echo "Assertion failed at $file:$line: $code"; if ($desc) { echo ": $desc"; } echo "\n"; } // Set up the callback assert_options(ASSERT_CALLBACK, 'my_assert_handler'); // Make an assertion that should fail assert('2 < 1'); assert('2 < 1', 'Two is less than one');

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.55
8.3.50.0090.00916.25
8.3.40.0090.00618.77
8.3.30.0030.01218.89
8.3.20.0030.00520.29
8.3.10.0000.00721.86
8.3.00.0040.00419.50
8.2.180.0120.00617.00
8.2.170.0140.00422.96
8.2.160.0120.00620.34
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0090.00317.50
8.2.110.0030.00621.00
8.2.100.0120.00017.75
8.2.90.0050.00319.08
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00017.99
8.2.50.0040.00418.07
8.2.40.0050.00321.25
8.2.30.0040.00418.06
8.2.20.0080.00017.81
8.2.10.0000.00718.09
8.2.00.0080.00018.12
8.1.280.0140.00625.92
8.1.270.0040.01220.13
8.1.260.0040.00426.35
8.1.250.0060.00928.09
8.1.240.0060.00323.97
8.1.230.0000.01217.42
8.1.220.0040.00817.80
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0060.00317.13
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0030.00523.76
8.1.150.0050.00318.83
8.1.140.0000.00817.39
8.1.130.0000.00717.64
8.1.120.0040.00417.29
8.1.110.0040.00417.27
8.1.100.0000.00817.36
8.1.90.0040.00417.43
8.1.80.0050.00517.29
8.1.70.0030.00317.34
8.1.60.0060.00317.54
8.1.50.0040.00417.38
8.1.40.0000.00817.44
8.1.30.0060.00317.52
8.1.20.0050.00317.50
8.1.10.0060.00317.55
8.1.00.0020.00517.45
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0030.00318.48
8.0.270.0000.00717.25
8.0.260.0030.00317.26
8.0.250.0000.00817.03
8.0.240.0000.00617.01
8.0.230.0030.00317.04
8.0.220.0030.00316.87
8.0.210.0040.00316.98
8.0.200.0000.00617.01
8.0.190.0030.00516.90
8.0.180.0080.00016.95
8.0.170.0080.00016.80
8.0.160.0080.00017.05
8.0.150.0040.00416.87
8.0.140.0030.00516.91
8.0.130.0000.00613.32
8.0.120.0080.00016.81
8.0.110.0070.00016.99
8.0.100.0040.00416.95
8.0.90.0000.00716.98
8.0.80.0210.00216.87
8.0.70.0180.01516.90
8.0.60.0170.01116.83
8.0.50.0190.00916.86
8.0.30.0150.00717.04
8.0.20.0120.01217.27
8.0.10.0240.01116.92
8.0.00.0130.00516.83
7.4.330.0030.00315.08
7.4.320.0030.00316.51
7.4.300.0030.00316.40
7.4.290.0070.00016.38
7.4.280.0000.00816.37
7.4.270.0000.00716.39
7.4.260.0030.00316.42
7.4.250.0050.00216.41
7.4.240.0000.00716.46
7.4.230.0030.00316.60
7.4.220.0120.00616.57
7.4.210.0070.00916.49
7.4.200.0200.01016.55
7.4.190.0170.01216.52
7.4.180.0220.00316.50
7.4.160.0130.01016.34
7.4.150.0160.00716.92
7.4.140.0190.00617.40
7.4.130.0140.00816.46
7.4.120.0130.00816.48
7.4.110.0200.01316.48
7.4.100.0210.00416.48
7.4.90.0140.01016.46
7.4.80.0180.00617.83
7.4.70.0220.00316.44
7.4.60.0130.00816.38
7.4.50.0090.00716.36
7.4.40.0110.00816.44
7.4.30.0070.01316.32
7.4.20.0130.00716.38
7.4.10.0130.00716.33
7.4.00.0100.00915.84
7.3.330.0030.00313.36
7.3.320.0000.00513.30
7.3.310.0030.00316.41
7.3.300.0030.00316.37
7.3.290.0210.00716.36
7.3.280.0100.01016.35
7.3.270.0150.00816.84
7.3.260.0170.00416.39
7.3.250.0130.00816.35
7.3.240.0150.00716.42
7.3.230.0140.01316.38
7.3.220.0310.00316.38
7.3.210.0160.00916.38
7.3.200.0140.01216.30
7.3.190.0160.00816.31
7.3.180.0140.00916.31
7.3.170.0160.00916.40
7.3.160.0150.00716.42
7.3.150.0170.01016.35
7.3.140.0130.00916.31
7.3.130.0120.00916.34
7.3.120.0180.00816.36
7.3.110.0170.00616.32
7.3.100.0160.00716.20
7.3.90.0160.00516.36
7.3.80.0130.00716.31
7.3.70.0170.00316.30
7.3.60.0090.01316.32
7.3.50.0150.00916.33
7.3.40.0180.00616.39
7.3.30.0120.01216.33
7.3.20.0140.01016.33
7.3.10.0150.00816.38
7.3.00.0110.01416.40
7.2.340.0130.01616.29
7.2.330.0110.01116.35
7.2.320.0110.01116.47
7.2.310.0130.00816.42
7.2.300.0150.00716.45
7.2.290.0110.01316.41
7.2.280.0160.00816.45
7.2.270.0130.01116.31
7.2.260.0190.00316.38
7.2.250.0170.00716.34
7.2.240.0140.00916.42
7.2.230.0110.01016.39
7.2.220.0150.00916.32
7.2.210.0130.00816.28
7.2.200.0170.00516.42
7.2.190.0160.00916.38
7.2.180.0230.01216.51
7.2.170.0120.01116.48
7.2.160.0130.00916.41
7.2.150.0100.01216.60
7.2.140.0150.00616.47
7.2.130.0210.00416.55
7.2.120.0150.00816.66
7.2.110.0130.01016.52
7.2.100.0160.00616.54
7.2.90.0100.01216.50
7.2.80.0100.01416.54
7.2.70.0160.00516.38
7.2.60.0100.01116.50
7.2.50.0160.01016.54
7.2.40.0160.01116.48
7.2.30.0550.00916.51
7.2.20.0130.00916.51
7.2.10.0170.00716.54
7.2.00.0110.01017.43
7.1.330.0130.00815.50
7.1.320.0110.01015.53
7.1.310.0140.00815.60
7.1.300.0140.01015.50
7.1.290.0180.01015.40
7.1.280.0130.01115.62
7.1.270.0110.01215.39
7.1.260.0220.01115.45
7.1.250.0060.01315.44
7.1.240.0120.00815.41
7.1.230.0150.00715.53
7.1.220.0170.00815.46
7.1.210.0150.00815.46
7.1.200.0180.00415.55
7.1.190.0120.01215.60
7.1.180.0130.00915.39
7.1.170.0210.01015.47
7.1.160.0100.01415.52
7.1.150.0190.00715.47
7.1.140.0160.00415.47
7.1.130.0100.01015.49
7.1.120.0150.00715.45
7.1.110.0090.01215.45
7.1.100.0120.00716.25
7.1.90.0140.00715.45
7.1.80.0170.00315.54
7.1.70.0090.00916.02
7.1.60.0120.01116.99
7.1.50.0060.01415.89
7.1.40.0130.00715.46
7.1.30.0150.00415.52
7.1.20.0110.00815.43
7.1.10.0100.01015.35
7.1.00.0120.02917.77
7.0.330.0100.01115.01
7.0.320.0120.00815.17
7.0.310.0160.00715.17
7.0.300.0150.00815.17
7.0.290.0370.01015.05
7.0.280.0160.01015.01
7.0.270.0210.00515.25
7.0.260.0170.00515.09
7.0.250.0170.00515.28
7.0.240.0100.01315.18
7.0.230.0180.01115.18
7.0.220.0160.00915.07
7.0.210.0170.00715.18
7.0.200.0140.00515.69
7.0.190.0160.00915.18
7.0.180.0110.01015.23
7.0.170.0110.01215.18
7.0.160.0100.01215.17
7.0.150.0110.01115.07
7.0.140.0140.01015.10
7.0.130.0170.00715.25
7.0.120.0100.01115.13
7.0.110.0200.00615.12
7.0.100.0190.00615.14
7.0.90.0090.01315.09
7.0.80.0370.01215.12
7.0.70.0120.01015.17
7.0.60.0110.02916.72
7.0.50.0120.03315.95
7.0.40.0140.02816.93
7.0.30.0210.03016.79
7.0.20.0140.02116.81
7.0.10.0110.03516.90
7.0.00.0150.03116.74
5.6.400.0130.01415.77
5.6.390.0110.01115.91
5.6.380.0110.01115.80
5.6.370.0100.01015.69
5.6.360.0110.01215.83
5.6.350.0140.00815.65
5.6.340.0120.01115.74
5.6.330.0170.00715.77
5.6.320.0170.00515.85
5.6.310.0120.01115.77
5.6.300.0130.01415.71
5.6.290.0120.00915.84
5.6.280.0120.02817.38
5.6.270.0120.01015.59
5.6.260.0140.01015.75
5.6.250.0150.00715.82
5.6.240.0120.01115.83
5.6.230.0100.01315.84
5.6.220.0180.00415.80
5.6.210.0130.02917.38
5.6.200.0110.03116.63
5.6.190.0090.02217.49
5.6.180.1090.02117.24
5.6.170.0190.02517.33
5.6.160.0150.02517.37
5.6.150.0110.02316.59
5.6.140.0120.02116.56
5.6.130.0130.03316.59
5.6.120.0100.02117.53
5.6.110.0180.03417.51
5.6.100.0100.03717.47
5.6.90.0140.02117.45
5.6.80.0170.02417.15
5.6.70.1570.01917.27
5.6.60.0180.00715.76
5.6.50.0160.00815.66
5.6.40.0120.01515.72
5.6.30.0150.00815.74
5.6.20.0150.00715.58
5.6.10.0090.01215.69
5.6.00.0150.00815.74
5.5.380.0150.01115.69
5.5.370.0180.00915.76
5.5.360.0140.01015.71
5.5.350.0180.03517.29
5.5.340.0140.02316.46
5.5.330.0100.02517.20
5.5.320.0130.02217.22
5.5.310.0220.02217.13
5.5.300.0140.01716.41
5.5.290.0120.02916.49
5.5.280.0080.02717.33
5.5.270.0190.02817.34
5.5.260.0120.02117.36
5.5.250.0120.03417.22
5.5.240.0190.03417.22
5.5.230.0100.01315.72
5.5.220.0190.00615.56
5.5.210.0190.01115.73
5.5.200.0130.01015.65
5.5.190.0160.00915.55
5.5.180.0120.01215.58
5.5.170.0110.01115.54
5.5.160.0140.00915.66
5.5.150.0150.01315.49
5.5.140.0140.00915.50
5.5.130.0030.01915.45
5.5.120.0120.01115.59
5.5.110.0190.00615.48
5.5.100.0150.00915.45
5.5.90.0190.00415.71
5.5.80.0130.01115.76
5.5.70.0130.00915.72
5.5.60.0130.00915.71
5.5.50.0110.01115.61
5.5.40.0150.01015.55
5.5.30.0130.00915.54
5.5.20.0140.00915.70
5.5.10.0160.01015.64
5.5.00.0160.00515.67
5.4.450.0310.02314.87
5.4.440.0270.02614.95
5.4.430.0280.01814.88
5.4.420.0250.02814.98
5.4.410.0300.02114.99
5.4.400.0280.02214.72
5.4.390.0290.02214.87
5.4.380.0270.02414.86
5.4.370.0270.02314.61
5.4.360.0240.02414.61
5.4.350.0320.03214.87
5.4.340.0360.01714.84
5.4.330.0160.00612.55
5.4.320.0300.02014.83
5.4.310.0250.02514.73
5.4.300.0290.02614.82
5.4.290.0300.01914.79
5.4.280.0360.01914.79
5.4.270.0310.02114.77
5.4.260.0300.02214.77
5.4.250.0290.02214.78
5.4.240.0320.02314.79
5.4.230.0340.02214.62
5.4.220.0310.02214.72
5.4.210.0360.01714.75
5.4.200.0330.02014.03
5.4.190.0350.01714.66
5.4.180.0350.01914.66
5.4.170.0300.02614.73
5.4.160.0310.02014.61
5.4.150.0280.02314.73
5.4.140.0260.02413.80
5.4.130.0310.01513.81
5.4.120.0250.02013.80
5.4.110.0300.02313.87
5.4.100.0250.02113.89
5.4.90.0240.02213.78
5.4.80.0240.01913.82
5.4.70.0250.02013.91
5.4.60.0250.02113.80
5.4.50.0310.02413.90
5.4.40.0240.02713.80
5.4.30.0250.02313.84
5.4.20.0230.02313.86
5.4.10.0250.02113.94
5.4.00.0230.02113.65

preferences:
53.41 ms | 400 KiB | 5 Q