3v4l.org

run code in 300+ PHP versions simultaneously
<?php $what = new stdClass(); $haha = function() {echo 'haha';}; $what->haha = $haha; $what->haha;

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.0070.00716.75
8.3.50.0070.00716.59
8.3.40.0080.00818.75
8.3.30.0040.01118.71
8.3.20.0040.00420.36
8.3.10.0060.00321.91
8.3.00.0040.00422.14
8.2.180.0040.01418.15
8.2.170.0090.01222.96
8.2.160.0100.01019.04
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00721.13
8.2.120.0050.00326.35
8.2.110.0050.00520.32
8.2.100.0090.00317.71
8.2.90.0000.00819.16
8.2.80.0000.00818.04
8.2.70.0090.00017.50
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0080.00020.55
8.2.30.0040.00419.37
8.2.20.0040.00717.94
8.2.10.0030.00318.07
8.2.00.0040.00417.93
8.1.280.0070.00725.92
8.1.270.0000.00722.19
8.1.260.0100.00326.35
8.1.250.0070.00728.09
8.1.240.0070.00323.82
8.1.230.0030.00717.82
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00517.35
8.1.180.0050.00218.10
8.1.170.0030.00618.52
8.1.160.0000.00718.94
8.1.150.0000.00818.90
8.1.140.0040.00419.64
8.1.130.0030.00318.77
8.1.120.0000.00717.52
8.1.110.0000.00717.48
8.1.100.0080.00017.39
8.1.90.0030.00417.52
8.1.80.0070.00017.46
8.1.70.0040.00417.44
8.1.60.0050.00317.59
8.1.50.0000.00717.50
8.1.40.0000.00817.40
8.1.30.0040.00417.54
8.1.20.0000.00717.59
8.1.10.0030.00617.62
8.1.00.0000.00817.52
8.0.300.0050.00318.77
8.0.290.0000.00716.58
8.0.280.0050.00318.37
8.0.270.0040.00417.19
8.0.260.0000.00616.76
8.0.250.0040.00416.92
8.0.240.0030.00616.96
8.0.230.0000.00716.78
8.0.220.0030.00316.80
8.0.210.0030.00316.75
8.0.200.0030.00316.99
8.0.190.0030.00616.80
8.0.180.0070.00016.77
8.0.170.0030.00516.96
8.0.160.0060.00316.85
8.0.150.0000.00716.74
8.0.140.0030.00316.86
8.0.130.0050.00013.36
8.0.120.0040.00416.81
8.0.110.0070.00016.79
8.0.100.0080.00016.77
8.0.90.0030.00516.87
8.0.80.0090.01316.84
8.0.70.0070.00016.91
8.0.60.0070.00016.72
8.0.50.0040.00416.78
8.0.30.0100.00816.98
8.0.20.0080.01117.42
8.0.10.0050.00316.93
8.0.00.0100.00716.64
7.4.330.0030.00315.55
7.4.320.0000.00616.63
7.4.300.0000.00616.58
7.4.290.0070.00016.60
7.4.280.0000.00716.51
7.4.270.0000.00716.58
7.4.260.0030.00316.59
7.4.250.0070.00016.56
7.4.240.0080.00016.56
7.4.230.0070.00016.32
7.4.220.0120.00616.52
7.4.210.0070.00716.54
7.4.200.0070.00016.35
7.4.160.0070.01016.44
7.4.150.0060.01017.40
7.4.140.0140.00417.86
7.4.130.0090.01116.40
7.4.120.0090.01216.44
7.4.110.0130.00316.57
7.4.100.0100.00716.31
7.4.90.0060.01016.57
7.4.80.0060.01119.39
7.4.70.0090.00616.45
7.4.60.0100.00716.51
7.4.50.0060.00616.35
7.4.40.0110.01116.58
7.4.30.0080.00816.47
7.4.00.0060.01014.87
7.3.330.0000.00613.16
7.3.320.0050.00013.16
7.3.310.0000.00716.16
7.3.300.0070.00016.16
7.3.290.0050.00916.33
7.3.280.0080.00916.31
7.3.270.0100.01317.40
7.3.260.0110.00816.32
7.3.250.0090.00816.34
7.3.240.0080.00916.33
7.3.230.0080.00816.40
7.3.210.0070.01016.29
7.3.200.0100.00716.41
7.3.190.0070.01416.25
7.3.180.0060.01616.36
7.3.170.0190.00316.42
7.3.160.0100.00616.35
7.2.330.0120.00616.71
7.2.320.0130.00716.78
7.2.310.0100.01416.38
7.2.300.0130.00316.65
7.2.290.0110.00616.77
7.2.60.0110.00016.86
7.2.00.0030.01019.25
7.1.200.0080.00415.81
7.1.100.0040.00817.99
7.1.70.0130.00917.19
7.1.60.0250.01635.09
7.1.50.0180.02134.49
7.1.40.0160.01034.54
7.1.30.0200.02634.50
7.1.20.0330.01134.51
7.1.10.0060.01616.30
7.1.00.0100.00716.49
7.0.200.0120.00816.76
7.0.190.0060.01416.68
7.0.180.0120.00615.99
7.0.170.0110.00616.14
7.0.160.0000.01816.36
7.0.150.0060.01316.07
7.0.140.0120.00516.05
7.0.130.0120.00816.35
7.0.120.0090.00916.38
7.0.110.0060.01316.20
7.0.100.0110.00816.30
7.0.90.0100.01016.14
7.0.80.0070.01316.21
7.0.70.0150.00516.31
7.0.60.0030.01315.86
7.0.50.0040.01616.28
7.0.40.0040.01616.41
7.0.30.0070.01316.54
7.0.20.0060.01316.40
7.0.10.0100.01016.56
7.0.00.0060.01216.48

preferences:
39.19 ms | 401 KiB | 5 Q