3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(int $x) { var_export($x); } test(1); test(null); test('x');

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.00916.50
8.3.50.0080.00818.30
8.3.40.0040.01118.84
8.3.30.0110.00418.84
8.3.20.0040.00420.16
8.3.10.0080.00020.55
8.3.00.0000.00823.61
8.2.180.0110.00416.59
8.2.170.0040.01122.96
8.2.160.0100.00322.26
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00420.92
8.2.120.0000.00726.35
8.2.110.0060.00321.00
8.2.100.0090.00317.72
8.2.90.0040.00419.05
8.2.80.0000.00917.97
8.2.70.0040.00417.38
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0050.00322.32
8.2.30.0070.00019.41
8.2.20.0050.00217.77
8.2.10.0040.00417.89
8.2.00.0040.00417.96
8.1.280.0040.01125.92
8.1.270.0080.00021.78
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0070.00419.29
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.22
8.1.180.0080.00018.10
8.1.170.0000.00818.52
8.1.160.0000.00720.67
8.1.150.0000.00718.83
8.1.140.0040.00419.32
8.1.130.0040.00417.47
8.1.120.0000.00717.33
8.1.110.0070.00017.32
8.1.100.0040.00417.30
8.1.90.0030.00517.16
8.1.80.0000.00717.28
8.1.70.0030.00317.24
8.1.60.0040.00417.40
8.1.50.0050.00317.46
8.1.40.0040.00417.32
8.1.30.0060.00317.54
8.1.20.0040.00417.45
8.1.10.0050.00317.48
8.1.00.0040.00417.34
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.29
8.0.270.0000.00717.10
8.0.260.0030.00317.18
8.0.250.0030.00316.91
8.0.240.0040.00416.91
8.0.230.0050.00216.95
8.0.220.0030.00516.80
8.0.210.0000.00716.92
8.0.200.0000.00716.93
8.0.190.0080.00016.81
8.0.180.0030.00316.81
8.0.170.0060.00316.87
8.0.160.0000.00716.87
8.0.150.0000.01016.81
8.0.140.0040.00416.84
8.0.130.0030.00313.30
8.0.120.0030.00616.73
8.0.110.0000.00816.72
8.0.100.0000.00816.84
8.0.90.0040.00416.90
8.0.80.0060.01216.81
8.0.70.0070.00016.77
8.0.60.0070.00016.95
8.0.50.0040.00416.95
8.0.30.0070.01217.09
8.0.20.0140.00517.40
8.0.10.0040.00416.89
8.0.00.0090.00816.70
7.4.330.0030.00316.67
7.4.320.0030.00316.47
7.4.300.0070.00016.42
7.4.290.0050.00216.57
7.4.280.0070.00016.42
7.4.270.0060.00316.54
7.4.260.0000.00816.50
7.4.250.0070.00016.49
7.4.240.0080.00016.54
7.4.230.0030.00316.19
7.4.220.0060.01216.52
7.4.210.0050.01016.42
7.4.200.0030.00416.63
7.4.160.0110.00816.24
7.4.150.0180.00017.40
7.4.140.0080.01317.86
7.4.130.0090.00816.42
7.4.120.0090.00816.40
7.4.110.0030.01316.26
7.4.100.0090.00816.57
7.4.90.0080.00816.25
7.4.80.0120.00619.39
7.4.70.0080.00816.55
7.4.60.0000.01816.48
7.4.50.0060.00616.57
7.4.40.0120.00616.61
7.4.30.0090.00916.40
7.4.00.0100.00314.79
7.3.330.0030.00313.16
7.3.320.0000.00613.12
7.3.310.0030.00316.35
7.3.300.0000.00716.15
7.3.290.0000.00716.21
7.3.280.0080.01016.30
7.3.270.0140.00317.40
7.3.260.0070.01016.62
7.3.250.0130.00516.38
7.3.240.0070.01116.44
7.3.230.0120.00416.39
7.3.210.0070.01016.54
7.3.200.0110.01119.39
7.3.190.0100.00716.31
7.3.180.0120.00416.50
7.3.170.0090.01216.27
7.3.160.0090.00716.42
7.2.330.0120.00616.32
7.2.320.0070.01416.59
7.2.310.0070.01016.46
7.2.300.0110.00516.67
7.2.290.0150.00316.52
7.2.60.0110.00416.43
7.2.00.0090.00619.38
7.1.200.0190.00415.39
7.1.100.0060.01018.05
7.1.70.0040.00417.03
7.1.60.0030.02019.40
7.1.50.0150.00616.98
7.1.00.0000.08022.31
7.0.200.0140.01014.82
7.0.60.0370.06021.72
7.0.50.0100.04717.91
7.0.40.0130.07320.24
7.0.30.0300.08720.20
7.0.20.0370.08020.22
7.0.10.0030.04320.21
7.0.00.0200.07320.19
5.6.280.0070.06720.89
5.6.210.0130.07320.57
5.6.200.0070.04018.13
5.6.190.0130.03320.63
5.6.180.0300.07720.52
5.6.170.0270.04320.55
5.6.160.0030.08320.46
5.6.150.0070.08318.22
5.6.140.0070.08318.18
5.6.130.0070.08718.14
5.6.120.0030.04321.00
5.6.110.0130.07321.01
5.6.100.0100.03320.96
5.6.90.0030.05021.00
5.6.80.0100.07020.41
5.5.350.0130.08020.42
5.5.340.0100.06717.99
5.5.330.0030.07720.47
5.5.320.0500.05720.34
5.5.310.0130.04720.38
5.5.300.0030.05318.01
5.5.290.0100.07318.08
5.5.280.0100.06020.85
5.5.270.0100.07720.87
5.5.260.0170.04320.98
5.5.250.0000.08020.66
5.5.240.0370.06720.12

preferences:
48.87 ms | 400 KiB | 5 Q