3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooCallback { function __invoke(string $first, int $second, stdClass $third) ; } function useACallback(FooCallback $c) { return $c('abc', 1234, (object)[]); } var_dump(useACallback(new class implements FooCallback { function __invoke(string $first, int $second, stdClass $third) { return $second > 12; } }));

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.00816.60
8.3.40.0110.00418.66
8.3.30.0000.01518.85
8.3.20.0000.00720.30
8.3.10.0080.00021.77
8.3.00.0060.00323.66
8.2.180.0110.00418.31
8.2.170.0100.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00321.07
8.2.120.0070.00026.35
8.2.110.0110.00019.27
8.2.100.0000.01117.91
8.2.90.0080.00019.22
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00917.93
8.2.50.0090.00018.09
8.2.40.0080.00022.18
8.2.30.0000.00819.41
8.2.20.0000.00717.67
8.2.10.0050.00217.98
8.2.00.0000.00718.09
8.1.280.0100.01025.92
8.1.270.0050.00322.10
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0090.00022.44
8.1.230.0080.00317.58
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0070.00318.72
8.1.160.0040.00420.80
8.1.150.0000.00718.83
8.1.140.0030.00519.58
8.1.130.0030.00317.55
8.1.120.0030.00317.30
8.1.110.0040.00417.41
8.1.100.0070.00017.28
8.1.90.0080.00017.43
8.1.80.0000.00817.39
8.1.70.0000.00717.31
8.1.60.0080.00017.42
8.1.50.0060.00317.53
8.1.40.0080.00017.42
8.1.30.0040.00417.50
8.1.20.0000.00717.41
8.1.10.0070.00017.41
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0000.00717.31
8.0.260.0030.00317.30
8.0.250.0000.00617.04
8.0.240.0060.00016.94
8.0.230.0030.00516.88
8.0.220.0070.00016.82
8.0.210.0040.00416.93
8.0.200.0030.00316.91
8.0.190.0000.01116.96
8.0.180.0040.00416.98
8.0.170.0020.00516.95
8.0.160.0050.00317.00
8.0.150.0000.00816.88
8.0.140.0040.00416.80
8.0.130.0000.00613.38
8.0.120.0030.00516.92
8.0.110.0080.00016.82
8.0.100.0040.00416.99
8.0.90.0070.00016.98
8.0.80.0070.01016.89
8.0.70.0000.00816.73
8.0.60.0050.00216.86
8.0.50.0000.00716.94
8.0.30.0140.00317.03
8.0.20.0210.00517.40
8.0.10.0040.00416.91
8.0.00.0080.01216.73
7.4.330.0000.00516.77
7.4.320.0030.00316.46
7.4.300.0080.00016.49
7.4.290.0030.00716.54
7.4.280.0000.00716.65
7.4.270.0070.00016.61
7.4.260.0070.00016.57
7.4.250.0070.00016.58
7.4.240.0030.00316.63
7.4.230.0030.00316.54
7.4.220.0080.01216.43
7.4.210.0090.00616.62
7.4.200.0070.00016.59
7.4.160.0070.01016.41
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0130.00516.44
7.4.120.0070.01016.50
7.4.110.0040.01316.52
7.4.100.0100.00716.74
7.4.90.0160.00616.53
7.4.80.0140.00319.39
7.4.70.0050.01016.48
7.4.60.0060.01016.59
7.4.50.0070.00716.22
7.4.40.0160.00016.23
7.4.30.0110.00816.35
7.4.00.0030.01415.07
7.3.330.0000.00613.23
7.3.320.0000.00513.35
7.3.310.0030.00316.33
7.3.300.0030.00316.32
7.3.290.0030.00316.41
7.3.280.0100.01116.40
7.3.270.0200.00317.40
7.3.260.0110.01116.46
7.3.250.0080.01016.50
7.3.240.0080.01016.41
7.3.230.0060.01316.39
7.3.210.0060.01216.37
7.3.200.0060.01319.39
7.3.190.0020.00216.26
7.3.180.0100.00716.69
7.3.170.0110.00516.51
7.3.160.0090.00616.50
7.3.10.0020.01316.56
7.3.00.0060.00616.58
7.2.330.0080.01616.38
7.2.320.0060.01216.71
7.2.310.0130.01016.43
7.2.300.0140.00416.45
7.2.290.0130.00316.57
7.2.130.0080.00516.88
7.2.120.0090.00316.95
7.2.110.0020.01416.81
7.2.100.0030.00616.98
7.2.90.0040.01016.84
7.2.80.0030.00816.96
7.2.70.0030.01116.67
7.2.60.0050.00916.83
7.2.50.0060.00816.99
7.2.40.0070.00516.77
7.2.30.0060.00716.78
7.2.20.0030.01116.75
7.2.10.0060.00616.70
7.2.00.0040.01017.70
7.1.250.0020.00715.54
7.1.240.0080.00415.74
7.1.230.0070.00315.73
7.1.220.0080.00415.91
7.1.210.0070.00715.91
7.1.200.0060.00615.65
7.1.190.0060.00915.64
7.1.180.0030.00915.84
7.1.170.0070.00715.91
7.1.160.0040.00715.50
7.1.150.0060.00915.76
7.1.140.0040.00715.55
7.1.130.0090.00315.63
7.1.120.0030.01015.51
7.1.110.0040.00415.54
7.1.100.0040.00616.96
7.1.90.0040.00815.51
7.1.80.0080.00615.88
7.1.70.0060.00516.36
7.1.60.0040.01517.48
7.1.50.0060.01016.20
7.1.40.0040.00815.61
7.1.30.0080.00415.65
7.1.20.0080.00315.64
7.1.10.0000.01015.85
7.1.00.0000.04519.00
7.0.330.0070.00715.25
7.0.320.0040.00415.38
7.0.310.0030.01115.19
7.0.300.0030.00915.04
7.0.290.0000.01215.28
7.0.280.0030.01015.34
7.0.270.0030.00715.27
7.0.260.0030.00615.18
7.0.250.0060.00915.49
7.0.240.0090.00315.49
7.0.230.0110.00015.30
7.0.220.0030.00615.26
7.0.210.0040.00715.25
7.0.200.0050.00815.18
7.0.190.0000.01515.13
7.0.180.0110.00015.48
7.0.170.0040.00715.42
7.0.160.0030.00715.41
7.0.150.0030.00915.14
7.0.140.0030.00715.17
7.0.130.0070.00715.25
7.0.120.0070.00715.31
7.0.110.0100.00315.45
7.0.100.0030.00515.46
7.0.90.0060.00615.07
7.0.80.0030.00815.46
7.0.70.0070.00715.39
7.0.60.0230.03318.52
7.0.50.0060.04616.60
7.0.40.0060.04616.68
7.0.30.0210.03416.88
7.0.20.0200.03716.71
7.0.10.0030.04616.80
7.0.00.0090.02816.77
5.6.380.0030.01014.27
5.6.370.0090.00613.91
5.6.360.0060.00314.09
5.6.350.0070.00714.07
5.6.340.0060.00314.38
5.6.330.0030.00613.89
5.6.320.0070.00713.92
5.6.310.0000.00914.27
5.6.300.0030.01013.96
5.6.290.0040.00814.09
5.6.280.0050.03817.70
5.6.270.0080.00014.20
5.6.260.0070.00413.87
5.6.250.0060.00613.86
5.6.240.0040.00714.17
5.6.230.0040.00714.28
5.6.220.0070.00714.09
5.6.210.0070.02817.40
5.6.200.0050.04516.09
5.6.190.0080.04517.21
5.6.180.0150.02417.18
5.6.170.0220.03717.39
5.6.160.0070.02817.28
5.6.150.0140.02816.14
5.6.140.0050.02116.24
5.6.130.0040.02816.25
5.6.120.0050.04717.70
5.6.110.0050.04517.55
5.6.100.0070.04417.52
5.6.90.0040.04917.71
5.6.80.0110.01717.23
5.6.70.0040.00714.28
5.6.60.0040.01213.98
5.6.50.0030.00513.90
5.6.40.0060.00613.96
5.6.30.0100.00314.04
5.6.20.0000.01114.13
5.6.10.0040.00713.86
5.6.00.0080.00814.01
5.5.380.0030.00710.71
5.5.370.0040.00410.98
5.5.360.0000.00610.93
5.5.350.0160.03615.63
5.5.340.0050.02014.38
5.5.330.0030.04515.72
5.5.320.0100.04615.74
5.5.310.0150.01715.48
5.5.300.0050.04314.44
5.5.290.0100.03414.63
5.5.280.0080.04215.80
5.5.270.0050.04115.89
5.5.260.0120.03715.77
5.5.250.0060.02015.67
5.5.240.0090.01815.34
5.5.230.0000.00910.67
5.5.220.0000.00610.83
5.5.210.0060.00310.62
5.5.200.0070.00410.94
5.5.190.0030.00610.86
5.5.180.0000.00710.76
5.5.170.0040.00411.01
5.5.160.0050.00311.08
5.5.150.0060.00010.89
5.5.140.0000.00810.52
5.5.130.0000.00711.01
5.5.120.0060.00310.81
5.5.110.0030.00310.88
5.5.100.0020.00510.80
5.5.90.0000.00711.13
5.5.80.0040.00710.96
5.5.70.0110.00011.02
5.5.60.0080.00310.50
5.5.50.0100.00010.90
5.5.40.0040.00810.72
5.5.30.0060.00310.87
5.5.20.0070.00410.90
5.5.10.0070.00710.98
5.5.00.0040.00710.71

preferences:
53.12 ms | 400 KiB | 5 Q