3v4l.org

run code in 300+ PHP versions simultaneously
<?php $closure = function () { echo "hello world, I am a closure"; }; var_dump($closure); var_dump(gettype($closure)); var_dump(is_object($closure));

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.0030.01618.05
8.4.10.0100.00719.32
8.3.150.0090.01216.54
8.3.140.0070.01116.52
8.3.130.0070.00018.26
8.3.120.0080.00018.83
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0090.00016.50
8.3.70.0090.00618.50
8.3.60.0070.01416.50
8.3.50.0110.00420.07
8.3.40.0140.00019.18
8.3.30.0040.01118.59
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.260.0060.01217.13
8.2.250.0000.00816.37
8.2.240.0160.00318.79
8.2.230.0100.00022.58
8.2.220.0080.00037.54
8.2.210.0140.00426.77
8.2.200.0030.00616.38
8.2.190.0110.00316.63
8.2.180.0060.00925.92
8.2.170.0120.00818.79
8.2.160.0080.00822.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0060.00320.38
8.2.100.0000.01217.79
8.2.90.0080.00019.31
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00319.82
8.2.30.0000.00717.94
8.2.20.0030.00319.43
8.2.10.0040.00417.73
8.2.00.0040.00419.25
8.1.310.0030.01416.71
8.1.300.0040.00415.95
8.1.290.0030.00618.88
8.1.280.0120.00925.92
8.1.270.0050.00323.99
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0080.00419.14
8.1.230.0110.00317.71
8.1.220.0000.00917.74
8.1.210.0050.00518.77
8.1.200.0060.00317.35
8.1.190.0080.00017.10
8.1.180.0030.00718.10
8.1.170.0080.00018.46
8.1.160.0070.00018.98
8.1.150.0000.00718.54
8.1.140.0050.00217.51
8.1.130.0000.00718.88
8.1.120.0040.00417.45
8.1.110.0030.00617.46
8.1.100.0040.00417.51
8.1.90.0080.00017.44
8.1.80.0090.00317.47
8.1.70.0000.00817.46
8.1.60.0000.00817.48
8.1.50.0050.00317.42
8.1.40.0000.00717.53
8.1.30.0000.00817.63
8.1.20.0000.00717.54
8.1.10.0000.00717.43
8.1.00.0000.00717.24
8.0.300.0070.00418.77
8.0.290.0000.00716.63
8.0.280.0060.00318.37
8.0.270.0030.00517.87
8.0.260.0030.00318.30
8.0.250.0030.00316.77
8.0.240.0000.00716.82
8.0.230.0030.00316.87
8.0.220.0070.00016.82
8.0.210.0070.00016.79
8.0.200.0000.00616.82
8.0.190.0040.00416.95
8.0.180.0050.00216.88
8.0.170.0030.00716.80
8.0.160.0080.00016.77
8.0.150.0000.00716.83
8.0.140.0040.00416.84
8.0.130.0050.00013.35
8.0.120.0060.00613.35
8.0.110.0040.00213.27
8.0.100.0000.00613.31
8.0.90.0090.00413.28
8.0.80.0040.00913.25
8.0.70.0000.01213.26
8.0.60.0090.00413.27
8.0.50.0060.00613.27
8.0.30.0110.00213.27
8.0.20.0120.00013.30
8.0.10.0060.00613.36
8.0.00.0070.00013.38
7.4.330.0030.00315.55
7.4.320.0000.00616.55
7.4.300.0050.00216.59
7.4.290.0070.00016.34
7.4.280.0000.00816.60
7.4.270.0070.00016.59
7.4.260.0050.00616.60
7.4.250.0100.00313.21
7.4.240.0150.00013.37
7.4.230.0120.00313.26
7.4.220.0100.00313.21
7.4.210.0100.00313.32
7.4.200.0060.00613.30
7.4.190.0060.00613.44
7.4.180.0060.00613.27
7.4.160.0040.00913.30
7.4.150.0120.00013.21
7.4.140.0070.00513.20
7.4.130.0090.00413.06
7.4.120.0080.00513.13
7.4.110.0100.00313.25
7.4.100.0080.00413.23
7.4.90.0060.00613.21
7.4.80.0090.00313.13
7.4.70.0060.00713.17
7.4.60.0120.00013.17
7.4.50.0100.00313.11
7.4.40.0080.00213.07
7.4.30.0070.00313.07
7.4.20.0060.00613.15
7.4.10.0040.00813.11
7.4.00.0080.00413.33
7.3.330.0040.00616.27
7.3.320.0140.00013.21
7.3.310.0070.00413.27
7.3.300.0070.00213.24
7.3.290.0060.00613.27
7.3.280.0100.00013.21
7.3.270.0120.00013.32
7.3.260.0090.00413.08
7.3.250.0070.00713.24
7.3.240.0110.00213.16
7.3.230.0040.00713.18
7.3.220.0070.00713.19
7.3.210.0110.00313.19
7.3.200.0140.00013.01
7.3.190.0070.00513.08
7.3.180.0050.00513.11
7.3.170.0000.01113.02
7.3.160.0060.00313.18
7.3.150.0080.00413.14
7.3.140.0080.00413.19
7.3.130.0060.00613.11
7.3.120.0110.00313.24
7.3.110.0110.00013.06
7.3.100.0030.00713.10
7.3.90.0070.00713.32
7.3.80.0090.00512.99
7.3.70.0080.00613.29
7.3.60.0140.00013.16
7.3.50.0080.00413.25
7.3.40.0060.00013.25
7.3.30.0000.00613.35
7.3.20.0000.00615.18
7.3.10.0060.00015.08
7.3.00.0060.00014.99

preferences:
37.56 ms | 403 KiB | 5 Q