3v4l.org

run code in 300+ PHP versions simultaneously
<?php class_alias('Test'); class DB { public function __construct(){ echo 'hello'; } } $db = new DB;

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.0140.00416.50
8.3.50.0120.00316.27
8.3.40.0120.00918.93
8.3.30.0120.00318.87
8.3.20.0040.00418.85
8.3.10.0050.00320.82
8.3.00.0030.00617.80
8.2.180.0090.00918.41
8.2.170.0070.00722.96
8.2.160.0040.01120.64
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00319.70
8.2.120.0040.00426.35
8.2.110.0050.00522.25
8.2.100.0080.00317.72
8.2.90.0000.00822.32
8.2.80.0040.00417.97
8.2.70.0040.00417.92
8.2.60.0060.00318.09
8.2.50.0050.00318.10
8.2.40.0050.00319.41
8.2.30.0020.00519.38
8.2.20.0030.00517.86
8.2.10.0040.00417.99
8.2.00.0050.00219.36
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0060.00328.09
8.1.240.0070.01022.52
8.1.230.0110.00020.88
8.1.220.0000.00817.74
8.1.210.0030.00518.84
8.1.200.0060.00317.23
8.1.190.0000.00917.10
8.1.180.0000.00818.10
8.1.170.0060.00318.53
8.1.160.0070.00018.67
8.1.150.0000.00718.76
8.1.140.0040.00417.48
8.1.130.0080.00018.92
8.1.120.0090.00017.20
8.1.110.0040.00417.33
8.1.100.0000.00717.23
8.1.90.0000.00817.24
8.1.80.0040.00417.21
8.1.70.0000.00717.26
8.1.60.0060.00317.40
8.1.50.0050.00317.46
8.1.40.0060.00317.41
8.1.30.0050.00317.56
8.1.20.0000.00717.61
8.1.10.0070.00017.46
8.1.00.0000.00817.29
8.0.300.0030.00619.90
8.0.290.0000.00716.75
8.0.280.0050.00318.37
8.0.270.0000.00817.19
8.0.260.0030.00617.18
8.0.250.0050.00216.96
8.0.240.0050.00316.82
8.0.230.0000.00716.93
8.0.220.0030.00316.83
8.0.210.0000.00816.84
8.0.200.0070.00016.91
8.0.190.0040.00416.96
8.0.180.0020.00516.91
8.0.170.0000.00816.86
8.0.160.0000.00716.80
8.0.150.0000.00916.81
8.0.140.0040.00416.81
8.0.130.0000.00613.31
8.0.120.0000.00716.82
8.0.110.0100.00016.80
8.0.100.0000.00716.92
8.0.90.0000.00716.90
8.0.80.0060.01216.90
8.0.70.0040.00416.89
8.0.60.0070.00016.95
8.0.50.0000.00716.95
8.0.30.0110.00716.95
8.0.20.0090.01117.40
8.0.10.0000.00716.99
8.0.00.0030.01516.72
7.4.330.0000.00615.55
7.4.320.0030.00516.58
7.4.300.0000.00716.49
7.4.290.0030.00316.35
7.4.280.0000.00816.51
7.4.270.0040.00416.49
7.4.260.0070.00016.50
7.4.250.0030.00316.58
7.4.240.0030.00316.63
7.4.230.0000.00616.58
7.4.220.0040.00416.67
7.4.210.0080.00616.62
7.4.200.0020.00516.39
7.4.160.0070.00916.61
7.4.140.0130.00617.86
7.4.130.0070.01116.64
7.4.120.0110.00816.54
7.4.110.0070.01016.71
7.4.100.0060.01016.50
7.4.90.0070.01116.52
7.4.80.0150.01019.39
7.4.70.0080.00816.52
7.4.60.0030.01516.62
7.4.50.0090.00416.37
7.4.40.0140.00716.71
7.4.00.0070.00814.94
7.3.330.0000.00413.38
7.3.320.0000.00513.12
7.3.310.0040.00416.41
7.3.300.0000.00616.35
7.3.290.0000.00616.32
7.3.280.0130.00716.31
7.3.260.0150.00516.29
7.3.240.0090.00716.35
7.3.230.0060.01216.29
7.3.210.0080.00816.39
7.3.200.0120.00916.30
7.3.190.0040.01216.23
7.3.180.0070.01016.57
7.3.170.0110.00616.29
7.3.160.0120.00416.41
7.3.120.0060.01314.48
7.3.110.0030.01314.46
7.3.100.0100.00714.97
7.3.90.0030.00914.75
7.3.80.0090.00314.63
7.3.70.0090.00614.63
7.3.60.0120.00614.76
7.3.50.0030.01014.68
7.3.40.0000.00914.57
7.3.30.0070.00714.39
7.3.20.0040.01116.54
7.3.10.0040.01116.52
7.3.00.0050.00916.68
7.2.330.0100.00716.27
7.2.320.0100.00716.70
7.2.310.0120.00616.64
7.2.300.0120.00616.27
7.2.290.0150.00616.45
7.2.250.0030.01015.09
7.2.240.0000.01914.83
7.2.230.0040.01115.00
7.2.220.0090.00615.07
7.2.210.0100.00314.70
7.2.200.0090.00614.61
7.2.190.0070.01114.80
7.2.180.0030.01015.05
7.2.170.0090.00614.88
7.2.130.0040.01116.85
7.2.120.0060.00616.76
7.2.110.0060.00916.71
7.2.100.0130.00016.72
7.2.90.0030.00717.08
7.2.80.0070.00716.87
7.2.70.0060.00616.86
7.2.60.0960.00615.93
7.2.50.0890.00815.92
7.2.40.1180.00515.96
7.2.30.0760.00816.25
7.2.20.0850.00916.12
7.2.10.0830.00716.10
7.2.00.0850.00916.16
7.1.330.0040.00715.86
7.1.320.0030.01215.87
7.1.310.0030.00815.64
7.1.300.0030.01315.61
7.1.290.0040.01115.63
7.1.280.0060.00615.52
7.1.270.0040.00415.30
7.1.260.0000.00815.59
7.1.250.0100.00015.85
7.1.200.0090.00615.42
7.1.170.1470.00813.64
7.1.160.2250.01516.57
7.1.150.1710.01416.70
7.1.140.1850.00716.78
7.1.130.1470.00916.69
7.1.120.1710.01116.35
7.1.110.2150.01315.81
7.1.100.1910.00915.75
7.1.90.2200.00716.23
7.1.80.1730.01116.05
7.1.70.2530.00815.06
7.1.60.2250.00932.99
7.1.50.2660.01132.61
7.1.40.2520.01732.66
7.1.30.2130.01232.57
7.1.20.2880.01532.70
7.1.10.1960.00914.69
7.1.00.3510.01214.77

preferences:
37.28 ms | 400 KiB | 5 Q