3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myApp = []; $myApp["doTheThing"] = function () use (&$myApp) { echo 'Doing The Thing'; return $myApp; }; $myApp["doTheOtherThing"] = function () use (&$myApp) { echo "The Other Thing\n"; return $myApp; }; $myApp['doTheOtherThing']()['doTheThing'](); echo "\n------\n"; $myApp['doTheThing']()['doTheOtherThing']();

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.00918.40
8.3.50.0080.01017.43
8.3.40.0040.01118.85
8.3.30.0070.01018.84
8.3.20.0040.00421.73
8.3.10.0040.00421.82
8.3.00.0070.00021.73
8.2.180.0070.00725.92
8.2.170.0100.01018.79
8.2.160.0060.00920.39
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00319.83
8.2.120.0050.00326.35
8.2.110.0060.00320.38
8.2.100.0090.00317.78
8.2.90.0030.00517.88
8.2.80.0030.00618.73
8.2.70.0000.00817.75
8.2.60.0040.00417.63
8.2.50.0080.00018.04
8.2.40.0030.00619.32
8.2.30.0000.00820.32
8.2.20.0000.00718.12
8.2.10.0040.00419.20
8.2.00.0000.00818.05
8.1.280.0120.00625.92
8.1.270.0040.00420.27
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00020.95
8.1.230.0060.00622.66
8.1.220.0050.00318.55
8.1.210.0000.00818.94
8.1.200.0000.00817.50
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0050.00317.62
8.1.160.0050.00218.80
8.1.150.0000.00818.81
8.1.140.0050.00318.96
8.1.130.0000.00720.31
8.1.120.0000.00817.47
8.1.110.0040.00417.49
8.1.100.0000.00717.34
8.1.90.0030.00717.48
8.1.80.0040.00417.38
8.1.70.0030.00517.45
8.1.60.0080.00017.58
8.1.50.0040.00417.55
8.1.40.0060.00317.36
8.1.30.0070.00017.52
8.1.20.0000.00817.63
8.1.10.0000.00817.48
8.1.00.0040.00417.49
8.0.300.0000.00719.89
8.0.290.0040.00416.75
8.0.280.0070.00018.46
8.0.270.0030.00316.73
8.0.260.0030.00318.45
8.0.250.0030.00316.98
8.0.240.0000.00616.90
8.0.230.0070.00016.93
8.0.220.0070.00016.78
8.0.210.0000.00716.95
8.0.200.0000.00716.98
8.0.190.0030.00616.94
8.0.180.0040.00416.79
8.0.170.0060.00316.94
8.0.160.0030.00516.86
8.0.150.0070.00016.71
8.0.140.0040.00416.83
8.0.130.0000.00613.37
8.0.120.0000.00716.76
8.0.110.0040.00416.89
8.0.100.0040.00416.81
8.0.90.0030.00516.80
8.0.80.0000.01516.92
8.0.70.0030.00516.75
8.0.60.0020.00516.94
8.0.50.0040.00416.88
8.0.30.0200.00317.14
8.0.20.0070.01317.21
8.0.10.0030.00316.92
8.0.00.0080.01116.87
7.4.330.0000.00516.70
7.4.320.0000.00616.49
7.4.300.0000.00616.60
7.4.290.0030.00316.51
7.4.280.0040.00416.57
7.4.270.0030.00616.64
7.4.260.0000.00716.60
7.4.250.0000.00816.43
7.4.240.0030.00316.47
7.4.230.0000.00716.50
7.4.220.0000.00816.61
7.4.210.0050.01216.52
7.4.200.0040.00416.55
7.4.160.0100.00616.46
7.4.140.0130.01017.86
7.4.130.0100.00716.57
7.4.120.0140.00416.41
7.4.110.0070.01116.73
7.4.100.0100.00716.62
7.4.90.0030.01516.45
7.4.80.0100.01019.39
7.4.70.0030.01816.41
7.4.60.0080.00816.39
7.4.50.0030.01016.36
7.4.40.0070.01016.36
7.4.00.0080.01015.03
7.3.330.0000.00513.36
7.3.320.0030.00313.18
7.3.310.0040.00416.39
7.3.300.0070.00016.37
7.3.290.0040.00416.25
7.3.280.0080.00916.33
7.3.260.0100.00916.47
7.3.240.0100.01016.45
7.3.230.0090.00616.56
7.3.210.0150.00316.58
7.3.200.0110.01116.48
7.3.190.0130.00316.50
7.3.180.0140.00716.50
7.3.170.0130.00316.25
7.3.160.0090.00616.36
7.3.120.0090.00914.80
7.3.110.0100.01014.88
7.3.100.0030.01014.78
7.3.90.0060.00914.91
7.3.80.0030.01314.97
7.3.70.0090.00614.93
7.3.60.0100.00614.86
7.3.50.0040.00814.93
7.3.40.0070.00514.70
7.3.30.0120.00614.68
7.3.20.0070.00616.66
7.3.10.0070.00716.72
7.3.00.0100.00416.71
7.2.330.0120.00616.71
7.2.320.0130.00416.81
7.2.310.0040.01416.56
7.2.300.0030.01316.41
7.2.290.0090.01516.65
7.2.250.0070.01414.88
7.2.240.0090.00914.77
7.2.230.0070.00714.82
7.2.220.0080.00814.91
7.2.210.0060.00614.69
7.2.200.0080.00815.09
7.2.190.0120.00614.96
7.2.180.0060.00814.94
7.2.170.0100.00715.02
7.2.160.0090.00714.73
7.2.150.0120.00416.88
7.2.140.0010.01016.94
7.2.130.0120.00516.94
7.2.120.0060.00716.96
7.2.110.0090.00516.90
7.2.100.0060.00616.82
7.2.90.0060.00916.95
7.2.80.0040.00916.72
7.2.70.0040.00916.82
7.2.60.0100.00316.97
7.2.50.0110.00616.87
7.2.40.0060.01217.05
7.2.30.0070.01016.86
7.2.20.0100.00416.79
7.2.10.0070.00716.96
7.2.00.0070.00716.95
7.1.330.0030.01315.87
7.1.320.0060.00615.89
7.1.310.0140.00015.71
7.1.300.0030.01415.68
7.1.290.0070.01015.69
7.1.280.0080.00815.67
7.1.270.0100.00915.77
7.1.260.0080.01015.66
7.1.250.0050.00915.76

preferences:
64.24 ms | 401 KiB | 5 Q