3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { $this->name = $name; } public function doStuff() { ?> <p>Your name is: <?= $this->name; ?></p> <?php } } $test = new Foo('John Doe'); $test->doStuff();

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.0120.00318.66
8.3.50.0070.00921.27
8.3.40.0140.00018.70
8.3.30.0100.00718.95
8.3.20.0000.00820.13
8.3.10.0000.00821.95
8.3.00.0120.00622.57
8.2.180.0110.00416.75
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0070.01124.66
8.2.130.0080.00026.16
8.2.120.0030.00519.43
8.2.110.0090.00022.30
8.2.100.0090.00619.28
8.2.90.0030.00519.05
8.2.80.0000.00719.21
8.2.70.0040.00417.50
8.2.60.0030.00618.03
8.2.50.0030.00518.07
8.2.40.0040.00418.11
8.2.30.0040.00417.97
8.2.20.0040.00417.76
8.2.10.0050.00217.69
8.2.00.0070.00017.68
8.1.280.0070.00725.92
8.1.270.0050.00320.45
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00324.02
8.1.230.0110.00019.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0000.00917.40
8.1.180.0030.00618.43
8.1.170.0050.00518.57
8.1.160.0020.00522.13
8.1.150.0030.00518.60
8.1.140.0000.00717.29
8.1.130.0030.00517.80
8.1.120.0000.00717.42
8.1.110.0000.00717.43
8.1.100.0070.00017.34
8.1.90.0020.00517.33
8.1.80.0070.00017.29
8.1.70.0030.00517.25
8.1.60.0040.00417.42
8.1.50.0040.00417.51
8.1.40.0000.00817.52
8.1.30.0040.00417.62
8.1.20.0050.00317.46
8.1.10.0060.00317.56
8.1.00.0030.00617.39
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0050.00218.37
8.0.270.0000.00717.18
8.0.260.0070.00016.87
8.0.250.0000.00717.05
8.0.240.0000.00716.86
8.0.230.0000.00816.90
8.0.220.0070.00016.85
8.0.210.0000.00716.87
8.0.200.0060.00016.83
8.0.190.0030.00516.84
8.0.180.0070.00016.96
8.0.170.0040.00416.94
8.0.160.0040.00416.93
8.0.150.0040.00416.86
8.0.140.0000.00916.84
8.0.130.0030.00313.31
8.0.120.0040.00416.90
8.0.110.0040.00416.84
8.0.100.0030.00516.66
8.0.90.0000.00816.84
8.0.80.0090.00616.76
8.0.70.0000.00716.84
8.0.60.0000.00716.89
8.0.50.0020.00516.82
8.0.30.0110.00817.09
8.0.20.0080.01017.40
8.0.10.0000.00716.98
8.0.00.0080.01216.74
7.4.330.0000.00615.00
7.4.320.0030.00316.45
7.4.300.0000.00716.48
7.4.290.0030.00316.42
7.4.280.0070.00016.57
7.4.270.0030.00316.35
7.4.260.0000.00916.46
7.4.250.0020.00516.59
7.4.240.0040.00316.58
7.4.230.0000.00616.30
7.4.220.0090.00816.58
7.4.210.0080.00816.54
7.4.200.0070.00016.47
7.4.190.0070.00016.54
7.4.160.0100.01016.62
7.4.150.0030.01317.40
7.4.140.0160.00517.86
7.4.130.0090.00916.57
7.4.120.0140.00616.39
7.4.110.0100.00616.55
7.4.100.0110.01116.52
7.4.90.0120.00616.71
7.4.80.0150.00519.39
7.4.70.0090.01316.49
7.4.60.0030.01316.69
7.4.50.0000.00416.41
7.4.40.0060.00622.77
7.4.30.0070.01016.60
7.4.00.0050.01114.87
7.3.330.0050.00013.33
7.3.320.0000.00513.16
7.3.310.0000.00816.41
7.3.300.0040.00416.35
7.3.290.0070.00716.24
7.3.280.0060.01016.25
7.3.270.0030.01317.40
7.3.260.0170.00016.55
7.3.250.0100.00716.38
7.3.240.0170.00016.32
7.3.230.0140.00316.39
7.3.210.0220.00016.30
7.3.200.0030.01319.39
7.3.190.0120.00416.51
7.3.180.0040.01516.38
7.3.170.0060.01416.38
7.3.160.0120.00316.26
7.3.120.0030.01214.74
7.3.110.0070.00914.78
7.3.100.0050.01214.73
7.3.90.0110.00314.75
7.3.80.0080.00614.92
7.3.70.0050.00814.50
7.3.60.0030.01214.80
7.3.50.0070.00714.76
7.3.40.0070.00614.65
7.3.30.0080.00614.67
7.3.20.0060.01016.51
7.3.10.0090.00616.71
7.3.00.0090.00516.63
7.2.330.0070.01016.74
7.2.320.0060.01216.72
7.2.310.0060.01216.68
7.2.300.0100.00716.82
7.2.290.0030.01316.71
7.2.250.0120.00615.32
7.2.240.0070.01215.00
7.2.230.0020.01015.28
7.2.220.0050.00615.30
7.2.210.0030.00814.96
7.2.200.0070.00715.18
7.2.190.0080.00614.99
7.2.180.0030.01314.83
7.2.170.0030.00815.13
7.2.160.0030.01215.17
7.2.150.0040.00716.47
7.2.140.0030.01317.00
7.2.130.0060.01216.84
7.2.120.0110.00717.00
7.2.110.0640.00916.67
7.2.100.0040.01416.68
7.2.90.0100.00816.70
7.2.80.0090.00516.51
7.2.70.0120.00416.90
7.2.60.0170.00316.71
7.2.50.0100.00716.93
7.2.40.0070.00817.08
7.2.30.0180.00717.05
7.2.20.0090.00417.08
7.2.10.0110.00616.78
7.2.00.0080.00616.74
7.1.330.0050.01115.81
7.1.320.0030.00915.64
7.1.310.0050.00815.87
7.1.300.0070.00515.49
7.1.290.0050.00815.56
7.1.280.0100.00415.51
7.1.270.0070.00915.57
7.1.260.0070.00715.42
7.1.250.0030.00715.81
7.1.230.0110.00415.81
7.1.220.0060.00815.82
7.1.210.0070.00715.59
7.1.200.0130.00315.65
7.1.190.0000.01415.70
7.1.180.0590.00615.33
7.1.170.0090.00715.48
7.1.160.0130.00015.85
7.1.150.0110.00615.39
7.1.140.0180.00015.56
7.1.130.0040.01215.55
7.1.120.0280.00015.37
7.1.110.0360.00715.92
7.1.100.0110.00715.83
7.1.90.0130.00715.67
7.1.80.0110.00715.57
7.1.70.0030.00816.30
7.1.60.0120.01217.81
7.1.50.0060.01616.27
7.1.40.0120.00815.85
7.1.30.0180.00315.60
7.1.20.0090.01215.80
7.1.10.0070.00715.81
7.1.00.0080.01819.11
7.0.310.0130.00315.37
7.0.300.0080.00815.00
7.0.290.0260.00615.46
7.0.280.0120.00415.32
7.0.270.0130.00315.27
7.0.260.0110.00515.36
7.0.250.0330.00315.40
7.0.240.0050.00915.55
7.0.230.0120.00815.36
7.0.220.0150.01115.49
7.0.210.0120.00215.36
7.0.200.0030.01015.99
7.0.190.0070.00415.43
7.0.180.0040.01215.33
7.0.170.0040.00915.38
7.0.160.0100.00315.21
7.0.150.0070.00415.41
7.0.140.0090.03818.69
7.0.130.0090.00615.48
7.0.120.0080.00815.47
7.0.110.0090.00315.22
7.0.100.0060.00915.31
7.0.90.0140.00015.14
7.0.80.0060.00615.45
7.0.70.2150.02317.66
7.0.60.0070.04617.66
7.0.50.0130.03116.72
7.0.40.0040.02716.79
7.0.30.0150.04116.63
7.0.20.0230.04016.96
7.0.10.0200.03416.76
7.0.00.0150.04016.71
5.6.380.0070.00914.43
5.6.370.0140.00414.45
5.6.360.0140.00414.31
5.6.350.0180.00014.29
5.6.340.0070.00714.29
5.6.330.0030.01714.41
5.6.320.0120.00414.53
5.6.310.0110.00314.32
5.6.300.0080.00814.38
5.6.290.0120.00514.21
5.6.280.0030.04317.73
5.6.270.0130.00314.43
5.6.260.0120.00314.45
5.6.250.0140.00314.01
5.6.240.0130.00014.46
5.6.230.0110.00414.55
5.6.220.0110.00514.49
5.6.210.0110.03017.45
5.6.200.0160.03716.20
5.6.190.0100.04617.43
5.6.180.0190.04017.41
5.6.170.0190.03317.39
5.6.160.0090.02017.31
5.6.150.0100.02116.23
5.6.140.0020.02816.22
5.6.130.0070.04416.36
5.6.120.0060.03617.66
5.6.110.0060.04617.63
5.6.100.0040.04817.60
5.6.90.0050.02617.57
5.6.80.0050.02117.13
5.6.70.0180.04017.30
5.6.60.0110.00314.34
5.6.50.0120.00314.38
5.6.40.0060.00614.16
5.6.30.0030.01014.52
5.6.20.0130.00714.14
5.6.10.0070.01014.40
5.6.00.0120.00413.95
5.5.380.0080.00512.79
5.5.370.0070.00712.79
5.5.360.0110.00412.79
5.5.350.0120.01516.56
5.5.340.0080.03815.44
5.5.330.0100.04316.52
5.5.320.0070.03516.61
5.5.310.0230.04116.64
5.5.300.0030.02315.38
5.5.290.0060.02615.43
5.5.280.0100.03916.85
5.5.270.0070.02216.83
5.5.260.0080.03916.83
5.5.250.0110.04416.65
5.5.240.0080.04316.46
5.5.230.0070.00312.79
5.5.220.0110.00412.79
5.5.210.0150.00012.79
5.5.200.0100.00212.79
5.5.190.0080.00612.79
5.5.180.0070.00412.79
5.5.170.0090.00614.35
5.5.160.0080.00612.79
5.5.150.0100.00312.79
5.5.140.0070.00712.79
5.5.130.0070.00712.79
5.5.120.0110.00312.79
5.5.110.0160.00012.79
5.5.100.0080.00512.79
5.5.90.0140.00012.79
5.5.80.0040.00812.79
5.5.70.0120.00012.79
5.5.60.0110.00012.79
5.5.50.0080.00812.79
5.5.40.0080.00812.79
5.5.30.0110.00012.79
5.5.20.0060.00612.79
5.5.10.0090.00412.79
5.5.00.0120.00312.79
5.4.450.0320.03316.22
5.4.440.0440.02815.98
5.4.430.0440.03316.21
5.4.420.0370.03216.08
5.4.410.0590.02715.89
5.4.400.0170.02416.04
5.4.390.0300.03116.03
5.4.380.0190.02515.71
5.4.370.0290.02315.74
5.4.360.0320.02315.75
5.4.350.0110.02012.41
5.4.340.0090.02212.41
5.4.330.0080.00512.79
5.4.320.0060.02112.65
5.4.310.0050.02112.64
5.4.300.0130.02012.64
5.4.290.0060.02312.65
5.4.280.0070.02112.59
5.4.270.0060.02012.59
5.4.260.0080.02012.60
5.4.250.0160.02115.92
5.4.240.0040.03815.88
5.4.230.0080.02815.69
5.4.220.0090.02715.85
5.4.210.0140.02515.84
5.4.200.0110.02615.84
5.4.190.0130.03615.75
5.4.180.0070.02815.86
5.4.170.0080.03015.88
5.4.160.0060.03115.91
5.4.150.0080.02815.86
5.4.140.0170.02714.58
5.4.130.0110.02314.69
5.4.120.0070.02714.58
5.4.110.0080.02514.61
5.4.100.0060.03914.54
5.4.90.0110.02914.63
5.4.80.0090.02314.57
5.4.70.0100.03114.67
5.4.60.0080.03014.52
5.4.50.0020.03314.60
5.4.40.0080.02514.69
5.4.30.0100.03314.62
5.4.20.0030.03014.60
5.4.10.0080.02714.59
5.4.00.0050.02814.35
5.3.290.0080.02412.79
5.3.280.0110.02513.78
5.3.270.0110.03213.65
5.3.260.0050.03513.71
5.3.250.0070.02913.78
5.3.240.0050.02813.70
5.3.230.0050.02713.73
5.3.220.0100.02513.72
5.3.210.0060.02913.66
5.3.200.0100.02413.71
5.3.190.0060.02913.68
5.3.180.0050.02813.72
5.3.170.0030.02713.67
5.3.160.0070.02613.68
5.3.150.0090.03013.69
5.3.140.0070.03013.68
5.3.130.0050.03113.76
5.3.120.0090.02913.75
5.3.110.0110.02713.62
5.3.100.0080.02613.42
5.3.90.0070.03913.40
5.3.80.0100.03213.44
5.3.70.0030.02813.51
5.3.60.0070.02913.43
5.3.50.0030.02813.39
5.3.40.0060.03013.38
5.3.30.0050.02813.39
5.3.20.0080.02513.16
5.3.10.0030.03713.21
5.3.00.0050.02613.21
5.2.170.0130.01812.01
5.2.160.0050.02012.08
5.2.150.0110.02011.95
5.2.140.0040.02412.05
5.2.130.0070.02011.90
5.2.120.0070.01811.86
5.2.110.0070.02011.94
5.2.100.0070.02211.97
5.2.90.0070.02811.98
5.2.80.0060.02411.93
5.2.70.0090.03111.92
5.2.60.0060.02011.96
5.2.50.0100.01811.88
5.2.40.0050.02111.94
5.2.30.0080.02311.92
5.2.20.0070.02011.86
5.2.10.0120.02211.87
5.2.00.0090.01811.80
5.1.60.0070.01511.43
5.1.50.0030.02011.42
5.1.40.0020.02111.41
5.1.30.0100.02511.48
5.1.20.0080.01711.61
5.1.10.0020.02411.46
5.1.00.0080.01811.39
5.0.50.0060.02110.79
5.0.40.0070.01010.63
5.0.30.0050.02110.55
5.0.20.0070.01310.54
5.0.10.0030.01510.53
5.0.00.0050.02310.51
4.4.90.0050.0109.83
4.4.80.0060.0109.83
4.4.70.0040.0109.83
4.4.60.0050.0119.83
4.4.50.0020.0129.83
4.4.40.0040.0199.83
4.4.30.0050.0159.83
4.4.20.0020.0139.83
4.4.10.0010.0169.83
4.4.00.0060.0189.83
4.3.110.0040.0159.83
4.3.100.0020.0149.83
4.3.90.0060.0109.83
4.3.80.0020.0179.83
4.3.70.0050.0129.83
4.3.60.0060.0139.83
4.3.50.0000.0149.83
4.3.40.0020.0259.83
4.3.30.0010.0159.83
4.3.20.0020.0109.83
4.3.10.0010.0139.83
4.3.00.0080.01210.01

preferences:
45.54 ms | 401 KiB | 5 Q