3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Insurance { function clsName() { echo get_class(); } } $cl = new Insurance(); $cl->clsName(); Insurance::clsName();

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.00718.45
8.3.50.0120.00316.51
8.3.40.0030.01418.83
8.3.30.0070.01418.67
8.3.20.0150.00421.82
8.3.10.0090.00923.48
8.3.00.0120.00320.90
8.2.180.0150.00016.63
8.2.170.0070.00722.96
8.2.160.0140.00319.95
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.01119.83
8.2.120.0120.00626.35
8.2.110.0030.00619.10
8.2.100.0090.00318.22
8.2.90.0060.00317.75
8.2.80.0000.00818.91
8.2.70.0050.00317.92
8.2.60.0000.00718.22
8.2.50.0040.00418.10
8.2.40.0000.00819.47
8.2.30.0070.00019.27
8.2.20.0000.00818.13
8.2.10.0000.00819.14
8.2.00.0070.00319.30
8.1.280.0070.01125.92
8.1.270.0150.00418.88
8.1.260.0140.00026.35
8.1.250.0000.00728.09
8.1.240.0000.01022.23
8.1.230.0030.00718.98
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00418.65
8.1.160.0040.00418.79
8.1.150.0040.00418.75
8.1.140.0000.00820.62
8.1.130.0070.00020.27
8.1.120.0040.00417.38
8.1.110.0000.00717.31
8.1.100.0040.00417.37
8.1.90.0080.00017.41
8.1.80.0000.00817.35
8.1.70.0070.00017.38
8.1.60.0030.00617.53
8.1.50.0030.00517.51
8.1.40.0000.00917.53
8.1.30.0090.00017.59
8.1.20.0050.00317.52
8.1.10.0060.00317.61
8.1.00.0040.00417.48
8.0.300.0000.00918.77
8.0.290.0000.00816.75
8.0.280.0000.00718.55
8.0.270.0030.00517.21
8.0.260.0070.00018.38
8.0.250.0060.00016.95
8.0.240.0000.00816.98
8.0.230.0050.00216.91
8.0.220.0070.00016.89
8.0.210.0080.00016.84
8.0.200.0070.00016.94
8.0.190.0040.00416.95
8.0.180.0000.00816.93
8.0.170.0030.00616.95
8.0.160.0040.00416.78
8.0.150.0040.00416.81
8.0.140.0000.00816.89
8.0.130.0000.00613.34
8.0.120.0040.00416.81
8.0.110.0050.00216.73
8.0.100.0030.00516.95
8.0.90.0030.00516.95
8.0.80.0100.00716.90
8.0.70.0000.00816.77
8.0.60.0040.00416.84
8.0.50.0000.00716.75
8.0.30.0110.00917.00
8.0.20.0170.00617.40
8.0.10.0080.00017.05
8.0.00.0130.01016.66
7.4.330.0070.00015.55
7.4.320.0000.00716.33
7.4.300.0000.00716.50
7.4.290.0000.00716.41
7.4.280.0000.00716.53
7.4.270.0000.00716.62
7.4.260.0030.00516.48
7.4.250.0000.00816.55
7.4.240.0040.00416.50
7.4.230.0040.00416.60
7.4.220.0030.00516.38
7.4.210.0090.00816.48
7.4.200.0040.00416.39
7.4.160.0060.01116.56
7.4.140.0110.00817.86
7.4.130.0090.00916.77
7.4.120.0030.01316.71
7.4.110.0150.00616.57
7.4.100.0090.00916.34
7.4.90.0100.01316.41
7.4.80.0080.00819.39
7.4.70.0070.01116.58
7.4.60.0040.01116.39
7.4.50.0040.01116.47
7.4.40.0060.01216.48
7.4.00.0060.01214.95
7.3.330.0050.00013.14
7.3.320.0030.00313.22
7.3.310.0030.00316.17
7.3.300.0040.00416.21
7.3.290.0060.00016.30
7.3.280.0070.00916.26
7.3.260.0070.01116.41
7.3.240.0070.01116.42
7.3.230.0140.00316.27
7.3.210.0070.01016.36
7.3.200.0100.00716.34
7.3.190.0130.01016.43
7.3.180.0120.00316.47
7.3.170.0150.00316.41
7.3.160.0070.01016.33
7.3.10.0510.00514.94
7.3.00.0760.00514.62
7.2.330.0130.00316.55
7.2.320.0150.00616.54
7.2.310.0090.00916.71
7.2.300.0130.00316.45
7.2.290.0110.01116.54
7.2.130.0460.00814.99
7.2.120.0430.00714.87
7.2.110.0500.00514.97
7.2.100.0720.00715.08
7.2.90.0520.00514.98
7.2.80.0470.00315.14
7.2.70.0610.00515.14
7.2.60.0510.00715.09
7.2.50.0590.00614.85
7.2.40.0540.00315.04
7.2.30.0950.00714.98
7.2.20.0520.00515.07
7.2.10.0530.00314.90
7.2.00.0420.00615.01
7.1.250.0420.00513.89

preferences:
58.71 ms | 400 KiB | 5 Q