3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(?int $bar) { } foo(1); foo(null);

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.0080.01220.54
8.4.10.0120.00819.57
8.3.150.0050.00317.07
8.3.140.0160.00316.70
8.3.130.0040.00418.60
8.3.120.0040.00418.95
8.3.110.0040.00718.38
8.3.100.0090.00618.30
8.3.90.0090.00626.77
8.3.80.0000.01018.30
8.3.70.0170.00016.63
8.3.60.0150.00418.43
8.3.50.0270.00516.36
8.3.40.0140.00718.67
8.3.30.0170.01020.74
8.3.20.0100.00521.85
8.3.10.0170.00320.91
8.3.00.0130.00522.28
8.2.270.0150.00318.97
8.2.260.0000.00816.34
8.2.250.0040.00416.48
8.2.240.0060.00318.79
8.2.230.0090.00020.94
8.2.220.0030.00524.06
8.2.210.0040.00426.77
8.2.200.0070.00318.04
8.2.190.0190.00016.58
8.2.180.0030.01025.92
8.2.170.0140.01022.96
8.2.160.0190.00522.96
8.2.150.0090.00924.31
8.2.140.0090.00523.81
8.2.130.0030.00724.56
8.2.120.0060.00621.89
8.2.110.0060.00622.58
8.2.100.0070.00720.28
8.2.90.0160.00522.65
8.2.80.0060.00620.47
8.2.70.0120.00520.38
8.2.60.0120.00349.87
8.2.50.0080.00519.07
8.2.40.0080.00720.08
8.2.30.0110.00720.08
8.2.20.0130.00519.64
8.2.10.0150.00319.91
8.2.00.0110.00520.12
8.1.310.0050.00316.75
8.1.300.0060.00318.45
8.1.290.0000.00930.84
8.1.280.0130.01025.92
8.1.270.0010.01021.83
8.1.260.0110.00224.66
8.1.250.0040.00725.53
8.1.240.0130.00422.69
8.1.230.0120.00722.82
8.1.220.0130.00720.35
8.1.210.0110.00620.88
8.1.200.0090.00318.08
8.1.190.0120.00218.96
8.1.180.0100.00519.72
8.1.170.0080.00819.90
8.1.160.0090.00719.94
8.1.150.0110.00419.93
8.1.140.0110.00419.93
8.1.130.0090.00719.45
8.1.120.0100.00419.21
8.1.110.0110.00519.18
8.1.100.0100.00518.80
8.1.90.0120.00418.82
8.1.80.0100.00618.86
8.1.70.0080.00818.84
8.1.60.0140.00418.93
8.1.50.0130.00518.93
8.1.40.0090.00918.95
8.1.30.0130.00419.00
8.1.20.0110.00618.95
8.1.10.0150.00418.88
8.1.00.0140.00518.80
8.0.300.0050.00921.36
8.0.290.0120.00519.79
8.0.280.0130.00519.79
8.0.270.0110.00319.21
8.0.260.0090.00819.27
8.0.250.0080.00718.94
8.0.240.0100.00618.95
8.0.230.0080.00718.52
8.0.220.0090.00718.45
8.0.210.0110.00518.43
8.0.200.0130.00318.49
8.0.190.0120.00418.48
8.0.180.0110.00418.49
8.0.170.0130.00418.50
8.0.160.0110.00418.47
8.0.150.0110.00518.48
8.0.140.0110.00718.48
8.0.130.0120.00417.72
8.0.120.0110.00618.47
8.0.110.0120.00318.46
8.0.100.0100.00518.45
8.0.90.0100.00618.46
8.0.80.0080.00818.21
8.0.70.0070.00618.45
8.0.60.0100.00518.39
8.0.50.0100.00518.44
8.0.30.0080.00718.57
8.0.20.0110.01218.43
8.0.10.0120.00418.51
8.0.00.0100.00717.96
7.4.330.0100.00217.65
7.4.320.0120.00618.71
7.4.300.0130.00518.32
7.4.290.0130.00418.33
7.4.280.0120.00618.27
7.4.270.0130.00418.27
7.4.260.0150.00218.28
7.4.250.0110.00618.31
7.4.240.0100.00718.31
7.4.230.0120.00418.30
7.4.220.0110.00418.30
7.4.210.0120.00417.75
7.4.200.0110.00418.26
7.4.190.0100.00818.78
7.4.180.0100.00818.79
7.4.160.0120.00617.59
7.4.150.0110.00518.76
7.4.140.0100.00618.49
7.4.130.0130.00518.19
7.4.120.0110.00618.12
7.4.110.0110.00618.18
7.4.100.0100.00617.47
7.4.90.0090.00817.52
7.4.80.0080.00917.83
7.4.70.0100.00717.50
7.4.60.0070.00917.42
7.4.50.0090.00817.49
7.4.40.0090.00717.38
7.4.30.0110.00617.55
7.4.20.0090.00817.52
7.4.10.0100.00817.51
7.4.00.0090.00817.39
7.3.330.0110.00317.53
7.3.320.0110.00417.55
7.3.310.0110.00418.11
7.3.300.0100.00518.18
7.3.290.0120.00618.12
7.3.280.0120.00517.57
7.3.270.0140.00318.69
7.3.260.0100.00717.30
7.3.250.0140.00418.63
7.3.240.0120.00517.57
7.3.230.0160.00218.16
7.3.220.0120.00717.64
7.3.210.0140.00517.43
7.3.200.0130.00517.44
7.3.190.0120.00717.41
7.3.180.0130.00517.44
7.3.170.0100.00717.38
7.3.160.0150.00417.41
7.3.150.0100.00717.45
7.3.140.0100.00817.44
7.3.130.0130.00517.46
7.3.120.0120.00717.40
7.3.110.0090.00917.39
7.3.100.0110.00717.41
7.3.90.0130.00517.50
7.3.80.0110.00717.43
7.3.70.0110.00717.49
7.3.60.0100.00717.45
7.3.50.0090.00817.52
7.3.40.0110.00617.47
7.3.30.0150.00317.48
7.3.20.0120.00618.14
7.3.10.0140.00518.15
7.3.00.0120.00718.11
7.2.340.0120.00518.62
7.2.330.0100.00817.58
7.2.320.0080.01117.49
7.2.310.0110.00617.45
7.2.300.0120.00717.42
7.2.290.0120.00517.55
7.2.280.0090.00817.56
7.2.270.0120.00717.52
7.2.260.0100.00817.47
7.2.250.0130.00517.43
7.2.240.0100.00917.51
7.2.230.0120.00617.51
7.2.220.0110.00817.54
7.2.210.0100.00817.45
7.2.200.0120.00717.56
7.2.190.0120.00617.54
7.2.180.0110.00717.55
7.2.170.0120.00717.54
7.2.160.0100.00817.53
7.2.150.0150.00718.25
7.2.140.0110.00718.24
7.2.130.0120.00618.30
7.2.120.0130.00718.24
7.2.110.0140.00718.28
7.2.100.0130.00618.22
7.2.90.0110.00918.21
7.2.80.0200.00618.27
7.2.70.0140.00518.19
7.2.60.0120.00718.20
7.2.50.0120.00818.46
7.2.40.0100.00918.24
7.2.30.0140.00618.22
7.2.20.0130.00618.26
7.2.10.0140.00718.26
7.2.00.0100.00818.25
7.1.330.0140.00817.47
7.1.320.0140.00817.48
7.1.310.0160.00517.39
7.1.300.0160.00517.39
7.1.290.0120.00717.35
7.1.280.0140.00717.35
7.1.270.0160.00717.30
7.1.260.0150.00517.28
7.1.250.0150.00517.30
7.1.240.0130.00717.39
7.1.230.0180.00717.35
7.1.220.0140.00617.32
7.1.210.0110.00817.33
7.1.200.0130.00817.40
7.1.190.0130.00717.37
7.1.180.0170.00617.43
7.1.170.0150.00617.41
7.1.160.0140.00617.44
7.1.150.0130.00717.38
7.1.140.0160.00517.39
7.1.130.0180.00517.42
7.1.120.0120.00817.38
7.1.110.0150.00717.44
7.1.100.0120.00817.39
7.1.90.0160.00517.38
7.1.80.0150.00617.46
7.1.70.0140.00617.36
7.1.60.0130.00817.44
7.1.50.0130.00717.44
7.1.40.0140.00517.45
7.1.30.0130.00717.42
7.1.20.0130.00717.43
7.1.10.0290.00717.38
7.1.00.0120.00717.36

preferences:
60.51 ms | 403 KiB | 5 Q