3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class test { protected $subject = "Thank you for registering on"; public function __construct(){ } public function test(){ return $this->subject; } } $t = new test(); echo $t->test();

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.0090.01118.30
8.3.50.0130.00718.18
8.3.40.0070.01018.67
8.3.30.0120.00418.80
8.3.20.0080.00020.34
8.3.10.0060.00321.77
8.3.00.0120.00319.13
8.2.180.0030.01218.16
8.2.170.0100.00322.96
8.2.160.0110.00420.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0070.00322.13
8.2.100.0040.00717.91
8.2.90.0050.00317.97
8.2.80.0030.00619.41
8.2.70.0050.00317.68
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0000.00820.50
8.2.30.0050.00217.93
8.2.20.0050.00217.55
8.2.10.0080.00018.01
8.2.00.0020.00517.60
8.1.280.0190.00025.92
8.1.270.0040.00420.12
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.16
8.1.230.0040.00820.88
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0060.00317.40
8.1.180.0000.00818.10
8.1.170.0000.00918.50
8.1.160.0000.00722.18
8.1.150.0050.00318.69
8.1.140.0080.00017.40
8.1.130.0030.00317.73
8.1.120.0000.00717.37
8.1.110.0040.00417.38
8.1.100.0040.00417.27
8.1.90.0000.00817.31
8.1.80.0000.00817.27
8.1.70.0030.00317.42
8.1.60.0040.00417.46
8.1.50.0000.00917.41
8.1.40.0040.00417.53
8.1.30.0040.00417.64
8.1.20.0050.00317.56
8.1.10.0030.00517.56
8.1.00.0000.01017.38
8.0.300.0000.00720.07
8.0.290.0040.00416.63
8.0.280.0050.00218.45
8.0.270.0070.00017.25
8.0.260.0030.00317.30
8.0.250.0000.00716.89
8.0.240.0070.00016.82
8.0.230.0070.00016.92
8.0.220.0000.00716.71
8.0.210.0020.00516.80
8.0.200.0060.00016.86
8.0.190.0000.00716.89
8.0.180.0020.00516.75
8.0.170.0030.00616.89
8.0.160.0050.00316.79
8.0.150.0040.00416.82
8.0.140.0000.00716.68
8.0.130.0030.00313.21
8.0.120.0000.00816.80
8.0.110.0030.00316.81
8.0.100.0040.00416.91
8.0.90.0040.00416.85
8.0.80.0080.00816.77
8.0.70.0040.00416.93
8.0.60.0000.00716.89
8.0.50.0000.00716.77
8.0.30.0100.01117.05
8.0.20.0110.00717.40
8.0.10.0040.00416.93
8.0.00.0110.00816.79
7.4.330.0000.00515.03
7.4.320.0070.00016.50
7.4.300.0060.00016.52
7.4.290.0070.00316.63
7.4.280.0000.00716.52
7.4.270.0030.00316.51
7.4.260.0090.00016.57
7.4.250.0040.00416.51
7.4.240.0050.00316.51
7.4.230.0000.00716.30
7.4.220.0070.01016.54
7.4.210.0090.00616.69
7.4.200.0030.00316.52
7.4.160.0130.01016.54
7.4.150.0060.01017.40
7.4.140.0100.01217.86
7.4.130.0120.00816.34
7.4.120.0080.01016.53
7.4.110.0090.00916.62
7.4.100.0100.01316.37
7.4.90.0100.00716.55
7.4.80.0100.00619.39
7.4.70.0110.00616.47
7.4.60.0130.00316.61
7.4.50.0000.00816.48
7.4.40.0050.01416.46
7.4.30.0070.01016.50
7.4.00.0000.01115.06
7.3.330.0000.00513.22
7.3.320.0130.00013.25
7.3.310.0060.00016.30
7.3.300.0030.00316.32
7.3.290.0050.01116.21
7.3.280.0060.01116.22
7.3.270.0130.01017.40
7.3.260.0100.00716.13
7.3.250.0100.00716.33
7.3.240.0090.00916.49
7.3.230.0160.00716.39
7.3.210.0150.00316.40
7.3.200.0070.01019.39
7.3.190.0040.01316.32
7.3.180.0090.00616.30
7.3.170.0140.00716.41
7.3.160.0090.00816.52
7.2.330.0160.01616.72
7.2.320.0120.00616.35
7.2.310.0040.01216.91
7.2.300.0030.01216.38
7.2.290.0090.00616.70
7.2.00.0060.00619.42
7.1.100.0150.00418.21
7.1.70.0040.00417.05
7.1.60.0100.01319.50
7.1.50.0070.01316.53
7.1.00.0030.07722.54
7.0.200.0000.01016.51
7.0.140.0000.04022.18
7.0.60.0370.07019.98
7.0.50.0070.08717.88
7.0.40.0070.07720.23
7.0.30.0230.03720.25
7.0.20.0170.04320.01
7.0.10.0270.06720.06
7.0.00.0070.07320.33
5.6.280.0030.09320.93
5.6.210.0070.04020.45
5.6.200.0070.07018.19
5.6.190.0000.08720.47
5.6.180.0300.08020.62
5.6.170.0200.04320.48
5.6.160.0000.04720.57
5.6.150.0130.07718.23
5.6.140.0100.07718.25
5.6.130.0100.04018.15
5.6.120.0130.07720.99
5.6.110.0170.06720.98
5.6.100.0130.08021.09
5.6.90.0100.07021.13
5.6.80.0100.03320.41
5.6.70.0230.08020.36
5.5.350.0330.07320.35
5.5.340.0070.06317.97
5.5.330.0100.08020.43
5.5.320.0000.04720.57
5.5.310.0230.04020.37
5.5.300.0030.08317.99
5.5.290.0200.07017.94
5.5.280.0030.06020.98
5.5.270.0030.04320.79
5.5.260.0130.07020.76
5.5.250.0170.07720.69
5.5.240.0100.03720.16
5.4.450.0330.07019.46
5.4.440.0230.07319.52
5.4.430.0270.07319.32
5.4.420.0270.07019.63
5.4.410.0330.05319.38
5.4.400.0170.06018.86
5.4.390.0230.03719.20
5.4.380.0370.02718.95
5.4.370.0230.07018.82
5.4.360.0130.07318.95
5.4.350.0230.03718.96
5.4.340.0200.04319.16
5.4.320.0230.04319.31
5.4.310.0230.03019.08
5.4.300.0130.04019.05
5.4.290.0170.03718.95
5.4.280.0170.03718.84
5.4.270.0170.03719.31
5.4.260.0130.04018.99
5.4.250.0200.03719.23
5.4.240.0270.03318.86
5.4.230.0200.03318.94
5.4.220.0200.03319.32
5.4.210.0230.03019.31
5.4.200.0230.03019.24
5.4.190.0200.04019.20
5.4.180.0270.02718.96
5.4.170.0200.04719.18
5.4.160.0400.03718.83
5.4.150.0130.04318.95
5.4.140.0170.04016.34
5.4.130.0170.04016.52
5.4.120.0170.03716.45
5.4.110.0170.03716.54
5.4.100.0170.03316.46
5.4.90.0430.03316.40
5.4.80.0170.04016.44
5.4.70.0170.04716.62
5.4.60.0330.05716.52
5.4.50.0170.03716.34
5.4.40.0130.04016.54
5.4.30.0230.04016.34
5.4.20.0330.06716.56
5.4.10.0330.04316.53
5.4.00.0270.04015.80
5.3.290.0200.03714.57
5.3.280.0200.04014.59
5.3.270.0200.03314.77
5.3.260.0200.03314.61
5.3.250.0270.03014.70
5.3.240.0170.03714.57
5.3.230.0170.04014.58
5.3.220.0100.04014.65
5.3.210.0170.03714.61
5.3.200.0300.03014.79
5.3.190.0230.04014.79
5.3.180.0230.04314.68
5.3.170.0500.05714.46
5.3.160.0200.04314.53
5.3.150.0270.06014.53
5.3.140.0200.07314.56
5.3.130.0270.04714.52
5.3.120.0270.04714.46
5.3.110.0370.04314.66
5.3.100.0270.06014.09
5.3.90.0200.04013.93
5.3.80.0330.06713.95
5.3.70.0330.06314.14
5.3.60.0300.07014.09
5.3.50.0270.07013.87
5.3.40.0270.04714.04
5.3.30.0270.03313.81
5.3.20.0170.04013.85
5.3.10.0300.06313.58
5.3.00.0300.04013.57
5.2.170.0230.03712.49
5.2.160.0170.05312.49
5.2.150.0230.02712.49
5.2.140.0130.03312.49
5.2.130.0230.03712.49
5.2.120.0230.05012.49
5.2.110.0230.05012.49
5.2.100.0370.04312.49
5.2.90.0230.05712.49
5.2.80.0230.06012.49
5.2.70.0230.04012.49
5.2.60.0200.04012.49
5.2.50.0300.04311.17
5.2.40.0130.04011.17
5.2.30.0170.02711.17
5.2.20.0200.06011.17
5.2.10.0330.05311.17
5.2.00.0170.03711.17
5.1.60.0130.05711.17
5.1.50.0170.03311.17
5.1.40.0100.03311.17
5.1.30.0130.03011.17
5.1.20.0130.03711.17
5.1.10.0170.03311.17
5.1.00.0230.04311.17
5.0.50.0130.04711.17
5.0.40.0170.04011.17
5.0.30.0070.05311.17
5.0.20.0070.03011.17
5.0.10.0100.02311.17
5.0.00.0100.06011.17
4.4.90.0070.02012.49
4.4.80.0130.03011.17
4.4.70.0070.03011.17
4.4.60.0130.01711.17
4.4.50.0070.02311.17
4.4.40.0130.04711.17
4.4.30.0130.03311.17
4.4.20.0130.03311.17
4.4.10.0070.03711.17
4.4.00.0200.04011.17
4.3.110.0070.03311.17
4.3.100.0100.03011.17
4.3.90.0130.03011.17
4.3.80.0130.02311.17
4.3.70.0070.03711.17
4.3.60.0070.02311.17
4.3.50.0230.00711.17
4.3.40.0100.05311.17
4.3.30.0030.03711.17
4.3.20.0030.03711.17
4.3.10.0100.03311.17
4.3.00.0070.03311.17

preferences:
41.64 ms | 400 KiB | 5 Q