3v4l.org

run code in 300+ PHP versions simultaneously
<?php function by_ref (&$ref) { $ref = 42; } function by_handle ($handle) { $handle = 42; } $thing1 = new class {}; $thing2 = new class {}; by_ref($thing1); by_handle($thing2); var_dump($thing1, $thing2);

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.70.0150.00618.56
8.3.60.0100.01016.63
8.3.50.0140.00517.45
8.3.40.0030.01018.71
8.3.30.0090.00618.77
8.3.20.0080.00021.90
8.3.10.0030.00520.77
8.3.00.0070.00018.94
8.2.190.0040.01116.88
8.2.180.0060.00918.41
8.2.170.0140.00022.96
8.2.160.0080.00521.20
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00419.24
8.2.120.0080.00026.35
8.2.110.0000.00922.29
8.2.100.0060.00617.72
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0040.00417.25
8.2.60.0050.00318.04
8.2.50.0000.00818.10
8.2.40.0050.00322.18
8.2.30.0000.00719.32
8.2.20.0040.00417.98
8.2.10.0040.00418.00
8.2.00.0040.00418.07
8.1.280.0110.00425.92
8.1.270.0040.00422.11
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00622.73
8.1.230.0080.00319.05
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0030.00518.64
8.1.160.0030.00518.97
8.1.150.0070.00018.79
8.1.140.0000.00819.62
8.1.130.0000.00818.95
8.1.120.0040.00417.39
8.1.110.0050.00317.51
8.1.100.0050.00217.40
8.1.90.0000.00817.47
8.1.80.0070.00017.43
8.1.70.0030.00317.48
8.1.60.0080.00017.57
8.1.50.0000.00817.46
8.1.40.0000.00817.37
8.1.30.0080.00017.62
8.1.20.0000.00817.69
8.1.10.0000.00717.66
8.1.00.0000.00817.37
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0030.00317.25
8.0.260.0000.00818.89
8.0.250.0000.00716.98
8.0.240.0000.00816.89
8.0.230.0000.00916.91
8.0.220.0000.00816.75
8.0.210.0060.00316.88
8.0.200.0000.00716.96
8.0.190.0050.00316.98
8.0.180.0000.00716.89
8.0.170.0040.00416.82
8.0.160.0040.00416.85
8.0.150.0000.00716.79
8.0.140.0040.00416.89
8.0.130.0030.00313.37
8.0.120.0000.00716.80
8.0.110.0000.00716.76
8.0.100.0000.00916.69
8.0.90.0000.00716.96
8.0.80.0110.00616.88
8.0.70.0000.00716.91
8.0.60.0030.00316.67
8.0.50.0070.00016.92
8.0.30.0110.00517.22
8.0.20.0150.00417.40
8.0.10.0040.00416.84
8.0.00.0120.00616.88
7.4.330.0000.00615.55
7.4.320.0040.00416.58
7.4.300.0070.00016.51
7.4.290.0060.00316.52
7.4.280.0040.00416.45
7.4.270.0040.00416.41
7.4.260.0050.00216.52
7.4.250.0060.00016.48
7.4.240.0030.00516.61
7.4.230.0070.00016.50
7.4.220.0110.00616.51
7.4.210.0100.01016.61
7.4.200.0000.00716.41
7.4.160.0100.00916.46
7.4.150.0070.01017.40
7.4.140.0070.01017.86
7.4.130.0190.00316.68
7.4.120.0080.01016.42
7.4.110.0040.01416.61
7.4.100.0250.02816.50
7.4.90.0130.00416.46
7.4.80.0090.00919.39
7.4.70.0120.00616.56
7.4.60.0060.01016.56
7.4.50.0070.01016.41
7.4.40.0130.00316.34
7.4.30.0100.01016.49
7.4.00.0040.01214.82
7.3.330.0000.00613.24
7.3.320.0000.00513.20
7.3.310.0040.00416.22
7.3.300.0030.00316.16
7.3.290.0080.00616.23
7.3.280.0090.00816.24
7.3.270.0110.00817.40
7.3.260.0080.00916.37
7.3.250.0100.00916.29
7.3.240.0090.00716.29
7.3.230.0100.01016.54
7.3.210.0100.00716.34
7.3.200.0120.00316.43
7.3.190.0080.00816.17
7.3.180.0090.01216.16
7.3.170.0120.00916.21
7.3.160.0130.00816.48
7.2.330.0030.01716.60
7.2.320.0140.00416.47
7.2.310.0070.01016.66
7.2.300.0070.01016.73
7.2.290.0100.01316.45
7.2.60.0090.00616.91
7.1.200.0070.00015.68
7.1.70.0860.01015.36
7.1.60.0900.01033.17
7.1.50.1040.00332.85
7.1.40.1020.01332.50
7.1.30.1020.01732.62
7.1.20.0950.01032.75
7.1.10.0740.01014.89
7.1.00.1410.01014.73
7.0.200.0850.00714.84
7.0.190.0890.00314.68
7.0.180.1340.01014.41
7.0.170.0860.01014.41
7.0.160.0850.01414.41
7.0.150.0850.01014.28
7.0.140.0750.01314.48
7.0.130.0980.00714.49
7.0.120.0890.00314.51
7.0.110.0920.01014.54
7.0.100.0820.00014.57
7.0.90.0730.00714.40
7.0.80.0660.00914.35
7.0.70.0680.01014.62
7.0.60.0670.00714.36
7.0.50.0720.01014.62
7.0.40.1250.01014.67
7.0.30.0740.01314.51
7.0.20.0780.00714.68
7.0.10.0800.01014.59
7.0.00.0690.01014.77

preferences:
36.55 ms | 401 KiB | 5 Q