3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NewClass { public $data = "I am a property"; public function __construct() { echo "This class has been instantiated <br>"; } public function __destruct() { echo "<br> This is the end of the class!"; } } $object = new NewClass;

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.5.10.0110.00916.58
8.5.00.0120.00919.68
8.4.150.0020.00114.05
8.4.140.0170.00617.61
8.4.130.0050.00418.54
8.4.120.0060.00324.34
8.4.110.0100.00822.63
8.4.100.0120.00917.64
8.4.90.0110.00918.44
8.4.80.0040.00517.66
8.4.70.0140.00317.72
8.4.60.0060.01418.86
8.4.50.0140.00817.58
8.4.40.0040.00422.33
8.4.30.0120.00919.41
8.4.20.0120.00620.63
8.4.10.0040.00717.43
8.3.280.0140.00618.18
8.3.270.0120.00916.39
8.3.260.0050.00416.80
8.3.250.0120.00618.95
8.3.240.0140.00517.28
8.3.230.0080.01116.36
8.3.220.0060.00217.28
8.3.210.0110.01016.59
8.3.200.0060.00216.18
8.3.190.0050.00319.02
8.3.180.0110.00818.28
8.3.170.0070.01120.66
8.3.160.0060.01218.19
8.3.150.0000.00820.80
8.3.140.0040.00416.81
8.3.130.0120.00318.34
8.3.120.0060.00320.63
8.3.110.0040.00416.45
8.3.100.0030.00616.61
8.3.90.0040.00426.77
8.3.80.0070.00316.38
8.3.70.0180.00316.58
8.3.60.0140.00718.56
8.3.50.0180.00418.02
8.3.40.0130.00818.59
8.3.30.0110.00718.72
8.3.20.0080.00021.95
8.3.10.0080.00023.54
8.3.00.0050.00223.48
8.2.290.0070.00820.35
8.2.280.0050.00318.28
8.2.270.0090.00916.97
8.2.260.0040.00420.02
8.2.250.0030.00617.26
8.2.240.0060.00317.09
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0050.00526.77
8.2.200.0090.00018.41
8.2.190.0120.00616.58
8.2.180.0110.00325.92
8.2.170.0150.00018.82
8.2.160.0070.01322.96
8.2.150.0100.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00318.03
8.2.120.0070.00026.35
8.2.110.0040.00419.36
8.2.100.0040.00717.78
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00418.00
8.2.20.0050.00318.05
8.2.10.0000.00819.19
8.2.00.0040.00419.11
8.1.330.0100.00921.94
8.1.320.0090.00916.16
8.1.310.0070.00716.81
8.1.300.0040.00416.01
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0030.00623.79
8.1.230.0110.00017.83
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0080.00418.26
8.1.160.0040.00418.84
8.1.150.0000.00718.82
8.1.140.0040.00420.63
8.1.130.0070.00017.31
8.1.120.0000.00817.28
8.1.110.0000.00717.42
8.1.100.0050.00217.40
8.1.90.0000.00917.37
8.1.80.0000.00817.39
8.1.70.0000.00717.26
8.1.60.0030.00517.47
8.1.50.0080.00017.53
8.1.40.0030.00617.46
8.1.30.0080.00017.62
8.1.20.0000.00817.63
8.1.10.0050.00217.63
8.1.00.0040.00417.35
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0070.00018.49
8.0.270.0040.00417.24
8.0.260.0000.00616.79
8.0.250.0000.00716.79
8.0.240.0040.00416.79
8.0.230.0070.00016.88
8.0.220.0030.00316.79
8.0.210.0030.00316.76
8.0.200.0000.00716.84
8.0.190.0000.00716.86
8.0.180.0040.00416.88
8.0.170.0040.00416.75
8.0.160.0040.00416.84
8.0.150.0070.00316.64
8.0.140.0070.00016.67
8.0.130.0000.00513.28
8.0.120.0070.00016.84
8.0.110.0030.00316.73
8.0.100.0000.00816.69
8.0.90.0080.00016.77
8.0.80.0110.00816.78
8.0.70.0000.00716.93
8.0.60.0040.00416.80
8.0.50.0040.00416.68
8.0.30.0100.01016.85
8.0.20.0100.00917.40
8.0.10.0070.00016.83
8.0.00.0070.01116.75
7.4.330.0020.00215.55
7.4.320.0060.00016.45
7.4.300.0030.00316.43
7.4.290.0000.00816.49
7.4.280.0000.00716.54
7.4.270.0030.00316.51
7.4.260.0000.00816.46
7.4.250.0030.00616.44
7.4.240.0050.00216.51
7.4.230.0000.00716.62
7.4.220.0000.00716.63
7.4.210.0090.00716.52
7.4.200.0040.00416.66
7.4.160.0090.00816.37
7.4.140.0080.00817.86
7.4.130.0070.01116.48
7.4.120.0130.00716.61
7.4.110.0070.01116.20
7.4.100.0070.01116.62
7.4.90.0070.01016.41
7.4.80.0000.01619.39
7.4.70.0060.00916.34
7.4.60.0070.01016.53
7.4.50.0120.00616.46
7.4.40.0130.00316.77
7.4.00.0090.00915.05
7.3.330.0050.00013.09
7.3.320.0000.00613.06
7.3.310.0040.00416.27
7.3.300.0030.00316.28
7.3.290.0070.00016.25
7.3.280.0090.00916.21
7.3.260.0100.00816.35
7.3.240.0100.00916.32
7.3.230.0070.01016.54
7.3.210.0030.01516.42
7.3.200.0110.00516.16
7.3.190.0090.01316.15
7.3.180.0070.01016.34
7.3.170.0150.00316.27
7.3.160.0120.00316.42
7.3.120.0060.01214.91
7.3.110.0100.00714.45
7.3.100.0120.00614.70
7.3.90.0040.00814.74
7.3.80.0150.00314.85
7.3.70.0100.00314.43
7.3.60.0000.01214.82
7.3.50.0070.00714.33
7.3.40.0000.00814.83
7.3.30.0000.00914.60
7.3.20.0130.00016.49
7.3.10.0250.00715.56
7.3.00.0190.01115.49
7.2.330.0030.01316.21
7.2.320.0040.01516.62
7.2.310.0100.00716.36
7.2.300.0170.00316.62
7.2.290.0070.01016.41
7.2.250.0090.01214.94
7.2.240.0110.00715.25
7.2.230.0000.01414.85
7.2.220.0040.01115.24
7.2.210.0040.01414.83
7.2.200.0000.00914.95
7.2.190.0000.01515.05
7.2.180.0070.01114.93
7.2.170.0100.00715.11
7.2.160.0030.00914.86
7.2.150.0060.00616.79
7.2.140.0130.00316.54
7.2.130.0200.00815.83
7.2.120.0270.00815.97
7.2.110.0190.00515.84
7.2.100.0230.00715.88
7.2.90.0140.00915.95
7.2.80.0200.00916.08
7.2.70.0210.00815.96
7.2.60.0170.00715.95
7.2.50.0150.00815.82
7.2.40.0470.00815.93
7.2.30.0280.00316.04
7.2.20.0290.00915.95
7.2.10.0230.00515.97
7.2.00.0190.00515.84
7.1.330.0130.00315.41
7.1.320.0000.01715.54
7.1.310.0060.01215.71
7.1.300.0060.00615.52
7.1.290.0030.01315.81
7.1.280.0060.00615.70
7.1.270.0000.01215.48
7.1.260.0100.00315.57
7.1.250.0210.00814.89
7.1.240.0040.00715.68
7.1.230.0070.00415.75
7.1.220.0080.00415.61
7.1.210.0000.01015.43
7.1.200.0040.00815.58
7.1.190.0080.00415.83
7.1.180.0090.00015.75
7.1.170.0030.00715.78
7.1.160.0040.00515.49
7.1.150.0030.00515.82
7.1.140.0040.00415.70
7.1.130.0070.00715.63
7.1.120.0030.00815.80
7.1.110.0040.01215.68
7.1.100.0100.00315.63
7.1.90.0100.00315.70
7.1.80.0120.00415.51
7.1.70.0040.00415.51
7.1.60.0040.01115.52
7.1.50.0070.00715.70
7.1.40.0000.01515.38
7.1.30.0070.00715.51
7.1.20.0070.00715.48
7.1.10.0040.00715.57
7.1.00.0030.00915.39

preferences:
46.55 ms | 403 KiB | 5 Q