3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { private $t; public function __construct($t) { $this->t = t; } public function say() { echo $t; } } $t = new myClass("hello"); $t->say();

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.0040.01118.44
8.3.50.0190.00421.99
8.3.40.0150.00418.79
8.3.30.0120.00420.19
8.3.20.0080.00020.02
8.3.10.0050.00322.14
8.3.00.0050.00322.37
8.2.180.0120.00916.50
8.2.170.0000.01422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00519.63
8.2.110.0090.00021.98
8.2.100.0080.00417.91
8.2.90.0080.00019.34
8.2.80.0080.00019.21
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0040.00418.00
8.2.20.0070.00017.59
8.2.10.0070.00017.72
8.2.00.0000.01017.73
8.1.280.0070.01325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.99
8.1.230.0070.00319.10
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.22
8.1.190.0080.00017.41
8.1.180.0060.00318.76
8.1.170.0000.00818.62
8.1.160.0000.00722.11
8.1.150.0040.00418.58
8.1.140.0050.00217.27
8.1.130.0040.00417.82
8.1.120.0080.00017.39
8.1.110.0040.00417.29
8.1.100.0030.00517.43
8.1.90.0070.00017.34
8.1.80.0000.00717.41
8.1.70.0000.00717.34
8.1.60.0000.00817.40
8.1.50.0030.00517.46
8.1.40.0000.00717.38
8.1.30.0000.00817.60
8.1.20.0040.00417.58
8.1.10.0040.00417.52
8.1.00.0070.00317.46
8.0.300.0070.00018.77
8.0.290.0080.00017.18
8.0.280.0000.00718.44
8.0.270.0040.00317.19
8.0.260.0000.00616.79
8.0.250.0000.00716.95
8.0.240.0060.00316.90
8.0.230.0000.00717.00
8.0.220.0000.00716.93
8.0.210.0030.00317.01
8.0.200.0000.00817.06
8.0.190.0040.00416.99
8.0.180.0000.00716.96
8.0.170.0040.00416.94
8.0.160.0000.00716.86
8.0.150.0000.00716.86
8.0.140.0040.00416.95
8.0.130.0030.00313.28
8.0.120.0000.00716.86
8.0.110.0050.00316.83
8.0.100.0050.00216.94
8.0.90.0040.00416.98
8.0.80.0070.00716.90
8.0.70.0030.00516.95
8.0.60.0000.00717.00
8.0.50.0050.00216.83
8.0.30.0060.01417.10
8.0.20.0120.00617.40
8.0.10.0070.00016.83
8.0.00.0180.00116.69
7.4.330.0040.00415.00
7.4.320.0040.00416.49
7.4.300.0000.00716.49
7.4.290.0000.00716.60
7.4.280.0050.00216.50
7.4.270.0000.00716.55
7.4.260.0000.00513.26
7.4.250.0000.00916.55
7.4.240.0020.00516.61
7.4.230.0070.00016.63
7.4.220.0090.00916.56
7.4.210.0090.00716.51
7.4.200.0040.00316.68
7.4.190.0030.00316.49
7.4.160.0070.01016.48
7.4.150.0110.00717.40
7.4.140.0050.01317.86
7.4.130.0050.01216.50
7.4.120.0130.00316.69
7.4.110.0100.00716.39
7.4.100.0030.01316.59
7.4.90.0060.01016.42
7.4.80.0160.00419.39
7.4.70.0070.01016.50
7.4.60.0120.00616.66
7.4.50.0000.00816.44
7.4.40.0040.00822.77
7.4.30.0060.01016.28
7.4.00.0000.01514.95
7.3.330.0020.00313.33
7.3.320.0040.00413.18
7.3.310.0070.00016.36
7.3.300.0070.00016.25
7.3.290.0070.00716.34
7.3.280.0040.01216.38
7.3.270.0040.01417.40
7.3.260.0060.01216.34
7.3.250.0050.01116.47
7.3.240.0070.01016.29
7.3.230.0090.01016.57
7.3.210.0060.01216.30
7.3.200.0060.01119.39
7.3.190.0120.00916.52
7.3.180.0060.01016.53
7.3.170.0060.01016.57
7.3.160.0040.01516.43
7.3.120.0070.01114.98
7.3.10.0070.00516.65
7.3.00.0060.00616.76
7.2.330.0120.00616.43
7.2.320.0060.01216.74
7.2.310.0120.00916.70
7.2.300.0030.01316.80
7.2.290.0100.00616.71
7.2.130.0050.00416.90
7.2.120.0040.00816.84
7.2.110.0050.00516.81
7.2.100.0060.00516.86
7.2.90.0100.00116.77
7.2.80.0100.00316.97
7.2.70.0030.00816.72
7.2.60.0050.00816.73
7.2.50.0090.00716.82
7.2.40.0070.00416.96
7.2.30.0020.01016.87
7.2.20.0060.00616.82
7.2.10.0070.00516.75
7.2.00.0050.00917.62
7.1.250.0030.00815.70
7.1.200.0000.01515.93
7.1.70.0040.00416.97
7.1.60.0030.00716.88
7.1.50.0060.01817.05
7.1.00.0070.05722.35
7.0.200.0000.01616.79
7.0.140.0070.07322.21
7.0.60.0130.08019.82
7.0.50.0070.05717.88
7.0.40.0030.05020.27
7.0.30.0270.03720.25
7.0.20.0330.07720.10
7.0.10.0170.04320.07
7.0.00.0030.04320.25
5.6.280.0030.07020.78
5.6.210.0000.04720.47
5.6.200.0030.08318.29
5.6.190.0070.07020.48
5.6.180.0270.03720.57
5.6.170.0400.03320.47
5.6.160.0030.06320.54
5.6.150.0100.07718.21
5.6.140.0030.08318.29
5.6.130.0000.04318.12
5.6.120.0000.04721.00
5.6.110.0100.05721.11
5.6.100.0070.04021.00
5.6.90.0100.08320.98
5.6.80.0000.08320.41
5.6.70.0400.05720.38
5.5.350.0000.08720.31
5.5.340.0030.04717.98
5.5.330.0100.08320.23
5.5.320.0270.07320.38
5.5.310.0330.06020.29
5.5.300.0070.03717.95
5.5.290.0130.03017.97
5.5.280.0130.06320.88
5.5.270.0000.04720.88
5.5.260.0070.04020.74
5.5.250.0170.06720.62
5.5.240.0100.03320.19
5.4.450.0700.06319.39
5.4.440.0930.06319.46
5.4.430.0970.05319.30
5.4.420.1030.05719.16
5.4.410.0830.06019.45
5.4.400.1000.06318.81
5.4.390.0900.06318.75
5.4.380.0300.04718.57
5.4.370.0100.05718.84
5.4.360.0200.06718.80
5.4.350.0070.04112.02
5.4.340.0050.03812.02
5.4.320.0090.03612.51
5.4.310.0060.04312.50
5.4.300.0060.04212.50
5.4.290.0060.03712.50
5.4.280.0040.03712.40
5.4.270.0090.03312.40
5.4.260.0080.04112.40
5.4.250.0090.03812.40
5.4.240.0100.05018.84
5.4.230.0070.05018.74
5.4.220.0100.05018.95
5.4.210.0070.05318.84
5.4.200.0170.05718.85
5.4.190.0200.04018.89
5.4.180.0170.04019.08
5.4.170.0030.05318.77
5.4.160.0030.05318.90
5.4.150.0070.06718.95
5.4.140.0130.04316.55
5.4.130.0170.03716.34
5.4.120.0170.04016.52
5.4.110.0070.05016.61
5.4.100.0130.04316.41
5.4.90.0030.05016.62
5.4.80.0100.04716.34
5.4.70.0100.04716.45
5.4.60.0000.06316.43
5.4.50.0070.04716.43
5.4.40.0030.05016.53
5.4.30.0130.04016.34
5.4.20.0000.06716.43
5.4.10.0070.05016.47
5.4.00.0100.04315.79
5.3.290.0090.04012.80
5.3.280.0130.06314.78
5.3.270.0070.05014.69
5.3.260.0030.05714.68
5.3.250.0170.04014.69
5.3.240.0030.05314.69
5.3.230.0030.05314.73
5.3.220.0100.06714.55
5.3.210.0070.05714.79
5.3.200.0000.06014.40
5.3.190.0000.05714.56
5.3.180.0030.05714.64
5.3.170.0030.05714.56
5.3.160.0200.03714.64
5.3.150.0100.04714.72
5.3.140.0070.05314.66
5.3.130.0130.05014.56
5.3.120.0030.07714.54
5.3.110.0100.05314.59
5.3.100.0070.05714.09
5.3.90.0170.04314.20
5.3.80.0070.06014.09
5.3.70.0100.06714.11
5.3.60.0070.05014.06
5.3.50.0130.05014.11
5.3.40.0170.05014.13
5.3.30.0130.06313.91
5.3.20.0100.04313.77
5.3.10.0200.04713.64
5.3.00.0070.07013.86
5.2.170.0070.04011.15
5.2.160.0030.04311.10
5.2.150.0030.04011.37
5.2.140.0000.06311.05
5.2.130.0130.03011.09
5.2.120.0100.04311.27
5.2.110.0070.03711.09
5.2.100.0000.04311.17
5.2.90.0030.04711.19
5.2.80.0030.04311.05
5.2.70.0030.04311.08
5.2.60.0070.04011.27
5.2.50.0030.04310.85
5.2.40.0070.03710.98
5.2.30.0170.03011.06
5.2.20.0070.03711.14
5.2.10.0070.03711.04
5.2.00.0030.04010.73
5.1.60.0170.0239.96
5.1.50.0070.04710.09
5.1.40.0100.0339.82
5.1.30.0000.04310.41
5.1.20.0070.03310.36
5.1.10.0030.03310.00
5.1.00.0000.04010.11
5.0.50.0000.0338.60
5.0.40.0030.0308.45
5.0.30.0030.0408.19
5.0.20.0030.0278.16
5.0.10.0030.0308.10
5.0.00.0070.0438.31
4.4.90.0070.0176.62
4.4.80.0000.0236.62
4.4.70.0000.0236.62
4.4.60.0030.0236.62
4.4.50.0070.0176.62
4.4.40.0000.0436.62
4.4.30.0000.0306.62
4.4.20.0030.0206.62
4.4.10.0030.0206.62
4.4.00.0030.0336.62
4.3.110.0000.0306.62
4.3.100.0000.0306.62
4.3.90.0030.0236.62
4.3.80.0030.0336.62
4.3.70.0000.0306.62
4.3.60.0000.0236.62
4.3.50.0030.0206.62
4.3.40.0030.0406.62
4.3.30.0030.0206.62
4.3.20.0000.0236.62
4.3.10.0030.0206.62
4.3.00.0200.0237.09

preferences:
36.23 ms | 401 KiB | 5 Q