3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Karel {} function foo(Karel $karel = null, ?integer $int){ return $karel; } echo foo();

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.0150.00418.44
8.3.50.0070.01017.93
8.3.40.0110.00418.85
8.3.30.0140.00018.77
8.3.20.0040.00421.74
8.3.10.0020.00523.70
8.3.00.0040.00419.69
8.2.180.0040.01118.41
8.2.170.0110.00422.96
8.2.160.0030.01022.21
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0040.00419.27
8.2.120.0050.00326.35
8.2.110.0070.00319.20
8.2.100.0110.00017.78
8.2.90.0060.00317.84
8.2.80.0090.00017.97
8.2.70.0040.00417.90
8.2.60.0000.00818.04
8.2.50.0000.00718.10
8.2.40.0040.00420.60
8.2.30.0000.00719.30
8.2.20.0080.00018.09
8.2.10.0000.00818.03
8.2.00.0040.00417.91
8.1.280.0110.00725.92
8.1.270.0030.00523.96
8.1.260.0120.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00420.68
8.1.230.0040.00822.63
8.1.220.0040.00417.74
8.1.210.0050.00219.07
8.1.200.0050.00317.25
8.1.190.0040.00816.88
8.1.180.0000.00718.10
8.1.170.0090.00018.50
8.1.160.0040.00418.63
8.1.150.0000.00718.89
8.1.140.0080.00017.52
8.1.130.0000.00718.88
8.1.120.0000.00817.35
8.1.110.0000.00717.34
8.1.100.0040.00417.32
8.1.90.0030.00617.28
8.1.80.0000.00717.23
8.1.70.0000.00717.32
8.1.60.0000.00817.44
8.1.50.0030.00517.34
8.1.40.0040.00417.45
8.1.30.0050.00317.62
8.1.20.0060.00317.51
8.1.10.0030.00617.52
8.1.00.0040.00417.42
8.0.300.0030.00519.92
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0050.00317.18
8.0.260.0040.00417.10
8.0.250.0040.00416.99
8.0.240.0060.00316.94
8.0.230.0000.00716.93
8.0.220.0030.00616.94
8.0.210.0070.00016.87
8.0.200.0040.00416.93
8.0.190.0000.00817.00
8.0.180.0000.00716.79
8.0.170.0070.00316.75
8.0.160.0000.00716.90
8.0.150.0040.00416.73
8.0.140.0000.00716.82
8.0.130.0060.00013.31
8.0.120.0000.00816.81
8.0.110.0040.00416.95
8.0.100.0070.00016.66
8.0.90.0000.00816.71
8.0.80.0050.00916.80
8.0.70.0070.00016.73
8.0.60.0000.00716.71
8.0.50.0040.00416.88
8.0.30.0110.00816.87
8.0.20.0110.00917.40
8.0.10.0000.00716.84
8.0.00.0090.00816.71
7.4.330.0030.00315.55
7.4.320.0070.00016.23
7.4.300.0000.00616.50
7.4.290.0000.00716.44
7.4.280.0030.00516.48
7.4.270.0060.00316.39
7.4.260.0070.00016.45
7.4.250.0030.00316.48
7.4.240.0000.00716.48
7.4.230.0000.00716.32
7.4.220.0040.00416.59
7.4.210.0050.01016.43
7.4.200.0030.00316.18
7.4.160.0090.00816.39
7.4.140.0060.01317.86
7.4.130.0100.01416.52
7.4.120.0110.00916.52
7.4.110.0040.01416.48
7.4.100.0070.01016.66
7.4.90.0070.01316.43
7.4.80.0060.01619.39
7.4.70.0080.00816.60
7.4.60.0100.00616.26
7.4.50.0090.00616.40
7.4.40.0100.00616.55
7.4.00.0000.01114.90
7.3.330.0000.00613.25
7.3.320.0000.00513.36
7.3.310.0000.00716.27
7.3.300.0030.00316.17
7.3.290.0060.00016.25
7.3.280.0040.01316.24
7.3.260.0070.01116.28
7.3.240.0100.00916.36
7.3.230.0080.01116.51
7.3.210.0030.01216.26
7.3.200.0070.01016.47
7.3.190.0030.01216.44
7.3.180.0090.00616.25
7.3.170.0130.00316.39
7.3.160.0100.00616.41
7.3.10.0060.01016.80
7.3.00.0070.00716.75
7.2.330.0110.00616.43
7.2.320.0090.00916.53
7.2.310.0040.01716.45
7.2.300.0030.01316.52
7.2.290.0200.00416.24
7.2.130.0000.00916.57
7.2.120.0080.00516.84
7.2.110.0090.00316.59
7.2.100.0040.01116.80
7.2.90.0060.00316.57
7.2.80.0040.01216.84
7.2.70.0100.00016.88
7.2.60.0080.00716.72
7.2.50.0080.00716.77
7.2.40.1080.01117.25
7.2.30.0540.01217.29
7.2.20.0910.01017.29
7.2.10.0100.00817.08
7.2.00.0060.01416.96
7.1.250.0060.00315.48
7.1.200.0060.00615.60
7.1.160.2660.00916.25
7.1.150.1080.00916.38
7.1.140.1090.01516.72
7.1.130.1050.01616.67
7.1.120.0140.01216.65
7.1.110.0100.01016.07
7.1.100.1600.01015.94
7.1.90.1400.01915.86
7.1.80.1240.01315.96
7.1.70.1110.01315.24
7.1.60.1350.02233.05
7.1.50.0760.01332.89
7.1.40.0320.01432.37
7.1.30.0330.01432.20
7.1.20.0360.01132.48
7.1.10.0120.01414.61
7.1.00.0090.01514.83

preferences:
63.32 ms | 400 KiB | 5 Q