3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace main { $object = new notmain\notmainclass(); } namespace notmain { class notmainclass { function __construct() { echo "hi"; } } } ?>

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.4.120.0060.00520.77
8.4.110.0120.00918.69
8.4.100.0160.00417.60
8.4.90.0120.00820.67
8.4.80.0040.00420.67
8.4.70.0050.00418.78
8.4.60.0130.00520.29
8.4.50.0110.00920.29
8.4.40.0130.00619.67
8.4.30.0120.01218.47
8.4.20.0080.01218.83
8.4.10.0060.00317.80
8.3.250.0070.00218.87
8.3.240.0140.00516.58
8.3.230.0150.00416.50
8.3.220.0070.00720.62
8.3.210.0110.00618.57
8.3.200.0080.00416.55
8.3.190.0100.01017.06
8.3.180.0120.00616.46
8.3.170.0140.00416.92
8.3.160.0060.00920.40
8.3.150.0050.00317.21
8.3.140.0100.00717.09
8.3.130.0060.00316.39
8.3.120.0000.00920.71
8.3.110.0000.00816.45
8.3.100.0130.00716.50
8.3.90.0040.00426.77
8.3.80.0030.00718.56
8.3.70.0090.00616.63
8.3.60.0100.01018.31
8.3.50.0150.00421.92
8.3.40.0120.00818.79
8.3.30.0090.00918.52
8.3.20.0040.00421.86
8.3.10.0040.00420.18
8.3.00.0030.00523.57
8.2.290.0140.00416.96
8.2.280.0140.00618.43
8.2.270.0030.00716.94
8.2.260.0040.00418.78
8.2.250.0050.00316.80
8.2.240.0150.00018.90
8.2.230.0120.00320.94
8.2.220.0040.00424.06
8.2.210.0100.00726.77
8.2.200.0040.00816.63
8.2.190.0120.00916.58
8.2.180.0130.00318.15
8.2.170.0040.01122.96
8.2.160.0120.00321.07
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0040.00722.11
8.2.100.0080.00418.03
8.2.90.0000.00818.93
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0040.00417.50
8.2.50.0000.00817.63
8.2.40.0070.00018.10
8.2.30.0070.00017.99
8.2.20.0000.00718.01
8.2.10.0040.00419.16
8.2.00.0040.00419.08
8.1.330.0140.00515.91
8.1.320.0080.01022.03
8.1.310.0110.00716.77
8.1.300.0040.00418.53
8.1.290.0050.00518.88
8.1.280.0000.01425.92
8.1.270.0080.00023.78
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0050.00520.85
8.1.230.0110.00017.77
8.1.220.0060.00317.74
8.1.210.0060.00319.13
8.1.200.0040.00417.10
8.1.190.0040.00417.25
8.1.180.0050.00518.10
8.1.170.0000.01118.51
8.1.160.0040.00418.75
8.1.150.0000.00718.75
8.1.140.0050.00322.18
8.1.130.0000.00719.94
8.1.120.0000.00717.22
8.1.110.0000.00717.35
8.1.100.0080.00017.15
8.1.90.0030.00317.21
8.1.80.0050.00317.38
8.1.70.0000.01017.28
8.1.60.0040.00417.43
8.1.50.0000.01017.46
8.1.40.0030.00517.43
8.1.30.0000.00817.57
8.1.20.0040.00417.45
8.1.10.0040.00417.50
8.1.00.0000.00817.27
8.0.300.0040.00418.77
8.0.290.0040.00416.73
8.0.280.0000.00718.25
8.0.270.0000.00817.18
8.0.260.0000.00619.91
8.0.250.0000.00716.95
8.0.240.0030.00316.84
8.0.230.0000.00716.83
8.0.220.0030.00616.85
8.0.210.0070.00016.76
8.0.200.0000.00716.85
8.0.190.0040.00416.83
8.0.180.0050.00316.89
8.0.170.0000.00916.81
8.0.160.0000.00716.92
8.0.150.0030.00316.84
8.0.140.0060.00316.84
8.0.130.0000.00613.27
8.0.120.0040.00416.86
8.0.110.0030.00516.78
8.0.100.0040.00416.84
8.0.90.0000.00816.82
8.0.80.0060.00916.89
8.0.70.0030.00516.71
8.0.60.0000.00716.93
8.0.50.0000.00716.85
8.0.30.0080.01116.88
8.0.20.0060.01216.95
8.0.10.0040.00416.91
8.0.00.0110.00816.67
7.4.330.0050.00015.55
7.4.320.0030.00316.38
7.4.300.0060.00016.32
7.4.290.0040.00416.37
7.4.280.0050.00316.53
7.4.270.0030.00316.39
7.4.260.0070.00316.56
7.4.250.0030.00316.47
7.4.240.0040.00416.48
7.4.230.0040.00416.60
7.4.220.0020.00516.53
7.4.210.0070.01116.44
7.4.200.0030.00316.46
7.4.140.0170.00017.86
7.4.130.0100.01016.46
7.4.120.0110.00716.52
7.4.110.0100.00716.58
7.4.100.0170.00416.52
7.4.90.0050.01116.56
7.4.80.0040.01419.39
7.4.70.0100.00716.39
7.4.60.0090.00916.44
7.4.50.0070.01116.66
7.4.40.0030.01316.52
7.4.00.0070.01014.76
7.3.330.0060.00013.26
7.3.320.0000.00613.31
7.3.310.0000.00716.41
7.3.300.0070.00016.31
7.3.290.0060.00316.17
7.3.280.0080.00816.29
7.3.260.0100.00716.29
7.3.230.0100.00716.46
7.3.210.0070.01016.22
7.3.200.0090.00616.21
7.3.190.0090.00616.42
7.3.180.0100.01316.28
7.3.170.0070.01016.23
7.3.160.0000.02016.38
7.3.120.0090.00314.49
7.3.110.0060.01014.73
7.3.100.0030.01414.92
7.3.90.0070.01014.86
7.3.80.0070.00714.72
7.3.70.0070.00614.65
7.3.60.0090.00614.55
7.3.50.0080.00514.57
7.3.40.0070.00414.72
7.3.30.0080.00314.78
7.3.20.0060.00716.54
7.3.10.0050.00816.57
7.3.00.0040.00716.45
7.2.330.0100.00716.48
7.2.320.0060.00916.29
7.2.310.0090.00916.23
7.2.300.0030.01416.60
7.2.290.0070.01316.56
7.2.250.0070.01414.67
7.2.240.0090.00914.78
7.2.230.0060.00614.88
7.2.220.0110.00714.53
7.2.210.0000.01515.16
7.2.200.0070.00514.72
7.2.190.0010.01214.71
7.2.180.0040.00914.75
7.2.170.0080.00714.68
7.2.160.0110.00714.97
7.2.150.0080.00416.32
7.2.140.0080.00816.64
7.2.130.0080.00416.63
7.2.120.0100.00716.59
7.2.110.0120.00316.54
7.2.100.0080.00416.74
7.2.90.0110.00316.74
7.2.80.0060.00616.43
7.2.70.0090.00316.59
7.2.60.0080.00416.35
7.2.50.0080.00416.65
7.2.40.0030.01016.75
7.2.30.0070.01016.71
7.2.20.0000.01116.68
7.2.10.0070.01016.39
7.2.00.0060.00616.75
7.1.330.0030.01015.74
7.1.320.0040.00715.55
7.1.310.0060.00615.72
7.1.300.0090.00315.63
7.1.290.0070.00515.63
7.1.280.0020.01215.36
7.1.270.0070.00515.57
7.1.260.0030.00915.45
7.1.250.0030.00715.39

preferences:
29.75 ms | 403 KiB | 5 Q