3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $name; public function __construct($name) { $this->name = $name; } } // create two Foo objects: $foo = new Foo('Foo 1'); echo $foo->name;

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.0150.00618.68
8.3.50.0140.00321.20
8.3.40.0040.01118.73
8.3.30.0060.00920.29
8.3.20.0080.00020.29
8.3.10.0040.00421.83
8.3.00.0080.00022.52
8.2.180.0170.01016.75
8.2.170.0090.00922.96
8.2.160.0100.00322.09
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00420.56
8.2.110.0040.01122.10
8.2.100.0030.01017.66
8.2.90.0000.00819.14
8.2.80.0050.00319.39
8.2.70.0000.00917.50
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0050.00219.48
8.2.20.0070.00017.70
8.2.10.0000.00817.67
8.2.00.0030.00517.61
8.1.280.0120.00925.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.81
8.1.230.0040.00817.83
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00417.13
8.1.190.0040.00417.30
8.1.180.0080.00018.10
8.1.170.0080.00018.50
8.1.160.0040.00418.79
8.1.150.0050.00318.49
8.1.140.0040.00417.41
8.1.130.0050.00317.73
8.1.120.0000.00717.42
8.1.110.0070.00017.35
8.1.100.0000.00717.44
8.1.90.0000.00817.41
8.1.80.0080.00017.29
8.1.70.0000.00817.32
8.1.60.0000.00817.56
8.1.50.0040.00417.52
8.1.40.0000.00817.49
8.1.30.0030.00617.52
8.1.20.0060.00317.50
8.1.10.0000.00717.46
8.1.00.0000.00817.55
8.0.300.0050.00318.79
8.0.290.0000.00717.05
8.0.280.0000.00718.37
8.0.270.0000.00717.19
8.0.260.0000.00716.75
8.0.250.0000.00716.96
8.0.240.0040.00416.89
8.0.230.0020.00516.77
8.0.220.0000.00816.82
8.0.210.0070.00016.75
8.0.200.0000.00716.73
8.0.190.0000.00716.78
8.0.180.0000.00716.90
8.0.170.0050.00216.75
8.0.160.0070.00016.67
8.0.150.0040.00416.72
8.0.140.0040.00416.77
8.0.130.0050.00013.24
8.0.120.0030.00516.80
8.0.110.0000.00716.79
8.0.100.0030.00516.78
8.0.90.0040.00416.83
8.0.80.0070.01116.75
8.0.70.0040.00416.70
8.0.60.0000.00716.66
8.0.50.0040.00416.66
8.0.30.0090.01316.91
8.0.20.0060.01217.40
8.0.10.0050.00316.82
8.0.00.0110.00816.78
7.4.330.0020.00216.84
7.4.320.0050.00316.43
7.4.300.0000.00616.49
7.4.290.0000.00716.48
7.4.280.0000.00616.47
7.4.270.0000.00716.61
7.4.260.0050.00013.38
7.4.250.0030.00316.45
7.4.240.0030.00416.52
7.4.230.0000.00716.32
7.4.220.0040.01516.54
7.4.210.0080.00716.55
7.4.200.0030.00316.39
7.4.190.0070.00016.55
7.4.160.0110.00716.53
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0100.01216.64
7.4.120.0150.00316.39
7.4.110.0070.01016.44
7.4.100.0120.00616.41
7.4.90.0070.01016.61
7.4.80.0150.00619.39
7.4.70.0160.00016.54
7.4.60.0030.01716.64
7.4.50.0000.00916.54
7.4.40.0070.00922.77
7.4.30.0150.00316.48
7.4.00.0060.00815.06
7.3.330.0060.00013.24
7.3.320.0030.00313.17
7.3.310.0050.00216.14
7.3.300.0030.00316.05
7.3.290.0090.00916.20
7.3.280.0110.00616.23
7.3.270.0130.00617.40
7.3.260.0100.01318.24
7.3.250.0140.01116.38
7.3.240.0100.00716.41
7.3.230.0090.00816.50
7.3.210.0090.00616.40
7.3.200.0130.01019.39
7.3.190.0140.00716.43
7.3.180.0050.01116.29
7.3.170.0100.00616.39
7.3.160.0060.00916.29
7.3.120.0000.01314.79
7.3.10.0140.00316.44
7.3.00.0120.00316.52
7.2.330.0180.00016.55
7.2.320.0070.01116.80
7.2.310.0150.00316.74
7.2.300.0050.01116.56
7.2.290.0130.00316.51
7.2.130.0060.01117.03
7.2.120.0040.00417.00
7.2.110.0030.01416.98
7.2.100.0060.00917.02
7.2.90.0040.01416.91
7.2.80.0080.00316.63
7.2.70.0050.00516.67
7.2.60.0060.01316.72
7.2.50.0040.01516.79
7.2.40.0040.01516.88
7.2.30.0060.00916.94
7.2.20.0070.00716.95
7.2.10.0070.00716.89
7.2.00.0110.00318.15
7.1.250.0140.00015.86
7.1.240.0050.00315.57
7.1.230.0030.00915.88
7.1.220.0060.01015.67
7.1.210.0080.00415.60
7.1.200.0110.00415.34
7.1.190.0060.00615.73
7.1.180.0060.00615.65
7.1.170.0130.00315.61
7.1.160.0030.00615.37
7.1.150.0040.00815.70
7.1.140.0130.00615.52
7.1.130.0040.00815.55
7.1.120.0060.00915.61
7.1.110.0150.00015.61
7.1.100.0030.00717.00
7.1.90.0110.00815.69
7.1.80.0040.00815.68
7.1.70.0080.00616.15
7.1.60.0100.00817.26
7.1.50.0100.00716.36
7.1.40.0030.00915.61
7.1.30.0060.00915.79
7.1.20.0000.00815.54
7.1.10.0030.01315.58
7.1.00.0050.02119.23
7.0.330.0060.00615.16
7.0.320.0130.00015.28
7.0.310.0070.01015.46
7.0.300.0030.00615.38
7.0.290.0080.00815.40
7.0.280.0000.01415.27
7.0.270.0030.00615.29
7.0.260.0030.00515.55
7.0.250.0070.01015.44
7.0.240.0060.00615.20
7.0.230.0110.00415.11
7.0.220.0000.00915.19
7.0.210.0060.00915.39
7.0.200.0040.00916.00
7.0.190.0080.00415.22
7.0.180.0130.00015.26
7.0.170.0110.00415.24
7.0.160.0030.00915.55
7.0.150.0110.00615.19
7.0.140.0050.03718.61
7.0.130.0000.01415.34
7.0.120.0030.00915.25
7.0.110.0090.00615.41
7.0.100.0070.00715.52
7.0.90.0140.00315.34
7.0.80.0090.02217.56
7.0.70.0020.02717.69
7.0.60.0020.02817.75
7.0.50.0050.02617.95
7.0.40.0060.02816.78
7.0.30.0120.03116.56
7.0.20.0070.02516.67
7.0.10.0050.04316.76
7.0.00.0030.03516.81
5.6.380.0100.00314.04
5.6.370.0120.00314.38
5.6.360.0070.00714.25
5.6.350.0060.00614.21
5.6.340.0040.00714.53
5.6.330.0060.00914.41
5.6.320.0140.00014.36
5.6.310.0000.01214.46
5.6.300.0000.01314.24
5.6.290.0080.00814.21
5.6.280.0050.04117.56
5.6.270.0030.00614.41
5.6.260.0090.00614.39
5.6.250.0090.00014.30
5.6.240.0120.00314.34
5.6.230.0100.01817.48
5.6.220.0030.02417.35
5.6.210.0050.02417.53
5.6.200.0050.02717.69
5.6.190.0130.03517.70
5.6.180.0070.02717.88
5.6.170.0080.02317.67
5.6.160.0190.04717.70
5.6.150.0090.03017.52
5.6.140.0120.02317.54
5.6.130.0150.04517.70
5.6.120.0090.04817.68
5.6.110.0090.03317.51
5.6.100.0140.03517.66
5.6.90.0080.04517.66
5.6.80.0100.02817.34
5.6.70.0070.04617.31
5.6.60.0140.04017.30
5.6.50.0210.04217.19
5.6.40.0130.04217.19
5.6.30.0130.04417.29
5.6.20.0080.03617.29
5.6.10.0100.04417.19
5.6.00.0150.03517.31
5.5.380.0040.00710.87
5.5.370.0040.02415.73
5.5.360.0040.02315.75
5.5.350.0010.03115.99
5.5.340.0060.02116.00
5.5.330.0050.04016.06
5.5.320.0030.03815.93
5.5.310.0040.04416.08
5.5.300.0120.02215.85
5.5.290.0140.03216.13
5.5.280.0070.04715.94
5.5.270.0170.03815.96
5.5.260.0160.03815.98
5.5.250.0150.04015.71
5.5.240.0080.02315.62
5.5.230.0090.02715.49
5.5.220.0070.04315.49
5.5.210.0140.04215.43
5.5.200.0070.03015.68
5.5.190.0100.03715.58
5.5.180.0100.04015.74
5.5.170.0030.00311.11
5.5.160.0050.03315.56
5.5.150.0100.03715.59
5.5.140.0090.04015.46
5.5.130.0030.04315.71
5.5.120.0050.04515.61
5.5.110.0060.02215.61
5.5.100.0040.04415.61
5.5.90.0130.02515.61
5.5.80.0080.04015.41
5.5.70.0120.03815.66
5.5.60.0090.02015.34
5.5.50.0030.02715.68
5.5.40.0030.03115.63
5.5.30.0060.02715.43
5.5.20.0030.02415.65
5.5.10.0090.02215.38
5.5.00.0090.02015.39
5.4.450.0090.03115.14
5.4.440.0120.04215.22
5.4.430.0080.03515.05
5.4.420.0000.04815.13
5.4.410.0050.04114.95
5.4.400.0150.02514.96
5.4.390.0050.04215.04
5.4.380.0090.02314.97
5.4.370.0100.02714.97
5.4.360.0100.03814.99
5.4.350.0050.04314.96
5.4.340.0030.04214.88
5.4.330.0030.00511.00
5.4.320.0080.02515.03
5.4.310.0070.02414.96
5.4.300.0030.03114.97
5.4.290.0090.03814.81
5.4.280.0050.02514.85
5.4.270.0070.02914.90
5.4.260.0060.03014.99
5.4.250.0070.04015.16
5.4.240.0060.04015.20
5.4.230.0070.02515.13
5.4.220.0050.02814.97
5.4.210.0110.02014.86
5.4.200.0140.03015.07
5.4.190.0020.04714.96
5.4.180.0050.04314.94
5.4.170.0050.03414.82
5.4.160.0040.02115.05
5.4.150.0020.02614.76
5.4.140.0070.03613.73
5.4.130.0090.02113.63
5.4.120.0020.03213.64
5.4.110.0110.02713.59
5.4.100.0080.03813.69
5.4.90.0090.03513.67
5.4.80.0090.03713.63
5.4.70.0060.03613.75
5.4.60.0100.03113.64
5.4.50.0080.03013.79
5.4.40.0080.02813.71
5.4.30.0110.03213.47
5.4.20.0080.01813.63
5.4.10.0120.03413.71
5.4.00.0040.02813.32
5.3.290.0080.02812.67
5.3.280.0080.04012.56
5.3.270.0120.03712.59
5.3.260.0030.04212.71
5.3.250.0090.03612.51
5.3.240.0020.03112.59
5.3.230.0050.04112.58
5.3.220.0050.03412.33
5.3.210.0030.02612.40
5.3.200.0100.03612.35
5.3.190.0050.02512.54
5.3.180.0030.02212.59
5.3.170.0100.03712.52
5.3.160.0110.03712.47
5.3.150.0050.04212.46
5.3.140.0030.03612.41
5.3.130.0050.02712.60
5.3.120.0020.02912.57
5.3.110.0050.02612.49
5.3.100.0030.04112.29
5.3.90.0080.03412.22
5.3.80.0050.04012.23
5.3.70.0130.03212.30
5.3.60.0090.04112.28
5.3.50.0050.03912.24
5.3.40.0050.03812.21
5.3.30.0020.03412.30
5.3.20.0120.03212.06
5.3.10.0070.02211.98
5.3.00.0070.02711.86
5.2.170.0050.02110.67
5.2.160.0020.02110.78
5.2.150.0030.02210.67
5.2.140.0080.02510.64
5.2.130.0050.03210.75
5.2.120.0050.03010.78
5.2.110.0080.02310.77
5.2.100.0050.03310.78
5.2.90.0060.02810.72
5.2.80.0040.02010.69
5.2.70.0070.01310.71
5.2.60.0120.03210.64
5.2.50.0090.03210.64
5.2.40.0060.03110.71
5.2.30.0080.02610.70
5.2.20.0050.03310.67
5.2.10.0030.02310.64
5.2.00.0070.02710.64
5.1.60.0040.02210.64
5.1.50.0090.01710.64
5.1.40.0050.01310.64
5.1.30.0020.02510.64
5.1.20.0060.02910.64
5.1.10.0070.01310.64
5.1.00.0050.01310.64
5.0.50.0100.01210.64
5.0.40.0040.01610.64
5.0.30.0070.01510.64
5.0.20.0090.01810.64
5.0.10.0020.01510.64
5.0.00.0050.01810.64
4.4.90.0050.01810.64
4.4.80.0020.02210.64
4.4.70.0020.01310.64
4.4.60.0030.01810.64
4.4.50.0020.01810.64
4.4.40.0030.01710.64
4.4.30.0070.01010.64
4.4.20.0020.01010.64
4.4.10.0000.01410.64
4.4.00.0030.02110.64
4.3.110.0060.00710.64
4.3.100.0030.02010.64
4.3.90.0050.01410.64
4.3.80.0030.01510.64
4.3.70.0050.01710.64
4.3.60.0030.01510.64
4.3.50.0040.01010.64
4.3.40.0080.02510.64
4.3.30.0000.01610.64
4.3.20.0010.01510.64
4.3.10.0030.02010.64
4.3.00.0010.01910.64

preferences:
61.67 ms | 401 KiB | 5 Q