3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); function test(int $x = null) { var_dump($x); } test();

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.00618.30
8.3.50.0140.00521.27
8.3.40.0090.00618.72
8.3.30.0090.00618.69
8.3.20.0040.00420.34
8.3.10.0000.00821.78
8.3.00.0000.00823.66
8.2.180.0100.00716.32
8.2.170.0070.01022.96
8.2.160.0080.00620.43
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00420.80
8.2.120.0040.00426.35
8.2.110.0060.00619.39
8.2.100.0040.00717.59
8.2.90.0040.00418.96
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0000.00817.68
8.2.50.0000.00818.09
8.2.40.0080.00022.16
8.2.30.0030.00419.30
8.2.20.0040.00417.46
8.2.10.0000.00817.97
8.2.00.0040.00417.96
8.1.280.0100.01025.92
8.1.270.0120.00622.14
8.1.260.0060.00328.09
8.1.250.0080.00028.09
8.1.240.0100.00723.88
8.1.230.0030.00717.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00516.99
8.1.190.0060.00317.10
8.1.180.0000.00718.10
8.1.170.0050.00318.52
8.1.160.0030.00320.57
8.1.150.0000.00818.67
8.1.140.0030.00619.45
8.1.130.0030.00517.43
8.1.120.0030.00317.30
8.1.110.0030.00417.31
8.1.100.0000.00817.30
8.1.90.0000.00817.32
8.1.80.0030.00317.34
8.1.70.0000.00717.33
8.1.60.0000.00817.50
8.1.50.0030.00617.48
8.1.40.0060.00617.50
8.1.30.0040.00417.57
8.1.20.0000.00817.55
8.1.10.0040.00417.26
8.1.00.0040.00417.27
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0040.00418.32
8.0.270.0040.00416.99
8.0.260.0050.00317.16
8.0.250.0000.00816.86
8.0.240.0030.00616.84
8.0.230.0040.00416.80
8.0.220.0070.00016.62
8.0.210.0040.00416.73
8.0.200.0000.00616.80
8.0.190.0030.00916.77
8.0.180.0040.00416.84
8.0.170.0040.00416.79
8.0.160.0030.00316.61
8.0.150.0090.00316.66
8.0.140.0070.00016.69
8.0.130.0000.00613.17
8.0.120.0000.00816.66
8.0.110.0000.00716.70
8.0.100.0050.00216.77
8.0.90.0040.00416.80
8.0.80.0040.01116.67
8.0.70.0000.00816.60
8.0.60.0040.00416.75
8.0.50.0000.00716.59
8.0.30.0060.00916.72
8.0.20.0110.01017.40
8.0.10.0040.00416.67
8.0.00.0130.00716.77
7.4.330.0000.00516.84
7.4.320.0070.00016.41
7.4.300.0040.00416.37
7.4.290.0080.00016.53
7.4.280.0030.00516.43
7.4.270.0070.00016.45
7.4.260.0030.00316.52
7.4.250.0070.00016.53
7.4.240.0070.00016.40
7.4.230.0030.00316.61
7.4.220.0150.00616.53
7.4.210.0080.00616.38
7.4.200.0000.00716.40
7.4.160.0120.00416.41
7.4.150.0080.01017.40
7.4.140.0090.00817.86
7.4.130.0090.00816.35
7.4.120.0080.00916.42
7.4.110.0060.00916.41
7.4.100.0130.00616.36
7.4.90.0120.00316.46
7.4.80.0120.00419.39
7.4.70.0130.00716.32
7.4.60.0100.00716.52
7.4.50.0070.00716.50
7.4.40.0140.00316.43
7.4.30.0100.00716.32
7.4.00.0000.01414.74
7.3.330.0000.00713.25
7.3.320.0060.00013.05
7.3.310.0050.00216.34
7.3.300.0050.00216.20
7.3.290.0030.00316.19
7.3.280.0050.01016.22
7.3.270.0170.00317.40
7.3.260.0130.00316.50
7.3.250.0120.00816.27
7.3.240.0120.00616.30
7.3.230.0080.01116.39
7.3.210.0130.00316.25
7.3.200.0090.00919.39
7.3.190.0030.01216.17
7.3.180.0120.00316.04
7.3.170.0120.00616.23
7.3.160.0040.01116.20
7.2.330.0090.00916.16
7.2.320.0110.01116.20
7.2.310.0140.00416.33
7.2.300.0140.00716.54
7.2.290.0090.00916.54
7.2.110.0190.00416.57
7.2.60.0100.00316.76
7.2.00.0060.00618.99
7.1.200.0100.00315.88
7.1.100.0090.00917.44
7.1.70.0000.01117.19
7.1.60.0100.01619.40
7.1.50.0000.02116.93
7.1.00.0000.08022.51
7.0.200.0110.00016.66
7.0.60.0200.06721.88
7.0.50.0170.07317.83
7.0.40.0130.06319.98
7.0.30.0130.04720.33
7.0.20.0270.05720.33
7.0.10.0100.04720.24
7.0.00.0030.09020.25
5.6.280.0070.02721.13
5.6.210.0030.05720.61
5.6.200.0030.04018.19
5.6.190.0000.04720.33
5.6.180.0300.08020.39
5.6.170.0170.04320.67
5.6.160.0030.09020.39
5.6.150.0070.04318.15
5.6.140.0030.08718.16
5.6.130.0030.08318.28
5.6.120.0030.09021.02
5.6.110.0070.06721.14
5.6.100.0100.08321.13
5.6.90.0130.07321.11
5.6.80.0070.07720.36
5.5.350.0230.08320.35
5.5.340.0070.03717.92
5.5.330.0030.07720.21
5.5.320.0230.04320.38
5.5.310.0330.06020.28
5.5.300.0070.08317.99
5.5.290.0100.06717.95
5.5.280.0100.08320.88
5.5.270.0030.04020.80
5.5.260.0000.05320.87
5.5.250.0130.08020.59
5.5.240.0200.07320.23

preferences:
52.37 ms | 401 KiB | 5 Q