3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo 'created!'; } } class Bar { protected $foo; public function getFoo() { return $this->foo ?? ($this->foo = new Foo); } } var_dump((new Bar)->getFoo());

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.0100.01016.75
8.3.50.0130.00522.17
8.3.40.0090.00618.82
8.3.30.0120.00318.71
8.3.20.0080.00020.16
8.3.10.0090.00023.64
8.3.00.0040.00419.26
8.2.180.0150.00618.42
8.2.170.0120.00322.96
8.2.160.0070.00722.25
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0060.00319.23
8.2.120.0080.00026.35
8.2.110.0030.00620.56
8.2.100.0080.00417.80
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0060.00319.27
8.2.30.0040.00420.64
8.2.20.0030.00617.62
8.2.10.0040.00417.99
8.2.00.0040.00417.96
8.1.280.0080.00625.92
8.1.270.0100.00022.05
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0100.00722.10
8.1.230.0060.00617.65
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0060.00317.23
8.1.180.0090.00018.10
8.1.170.0070.00018.65
8.1.160.0040.00422.01
8.1.150.0060.00318.82
8.1.140.0080.00019.39
8.1.130.0030.00517.49
8.1.120.0040.00417.29
8.1.110.0020.00517.28
8.1.100.0040.00417.40
8.1.90.0050.00217.29
8.1.80.0050.00317.33
8.1.70.0000.00717.24
8.1.60.0030.00617.47
8.1.50.0040.00417.46
8.1.40.0000.00817.54
8.1.30.0050.00317.61
8.1.20.0000.00717.60
8.1.10.0000.00817.60
8.1.00.0070.00017.47
8.0.300.0030.00618.77
8.0.290.0030.00616.63
8.0.280.0070.00018.37
8.0.270.0030.00317.17
8.0.260.0000.00717.10
8.0.250.0050.00216.80
8.0.240.0030.00316.82
8.0.230.0000.00716.79
8.0.220.0070.00016.76
8.0.210.0070.00016.73
8.0.200.0000.00616.84
8.0.190.0030.00516.84
8.0.180.0000.00816.80
8.0.170.0030.00516.72
8.0.160.0030.00516.88
8.0.150.0030.00316.61
8.0.140.0060.00316.69
8.0.130.0000.00613.24
8.0.120.0000.00816.70
8.0.110.0070.00016.81
8.0.100.0000.00716.89
8.0.90.0000.00716.72
8.0.80.0090.00616.82
8.0.70.0000.00716.64
8.0.60.0000.00716.78
8.0.50.0000.00816.82
8.0.30.0120.00817.14
8.0.20.0080.01017.40
8.0.10.0050.00216.85
8.0.00.0120.00616.72
7.4.330.0030.00316.67
7.4.320.0070.00016.50
7.4.300.0000.00716.45
7.4.290.0040.00416.41
7.4.280.0000.00716.52
7.4.270.0040.00416.44
7.4.260.0070.00016.52
7.4.250.0040.00416.55
7.4.240.0070.00016.56
7.4.230.0030.00316.28
7.4.220.0160.00716.55
7.4.210.0090.00716.58
7.4.200.0000.00716.35
7.4.160.0120.00416.70
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0080.01116.49
7.4.120.0110.00716.57
7.4.110.0090.00916.42
7.4.100.0130.00716.46
7.4.90.0120.00816.54
7.4.80.0030.01419.39
7.4.70.0130.00316.57
7.4.60.0110.00616.52
7.4.50.0000.01616.13
7.4.40.0100.00716.23
7.4.30.0130.00916.61
7.4.00.0130.00314.86
7.3.330.0000.00713.29
7.3.320.0030.00313.18
7.3.310.0000.00716.20
7.3.300.0000.00716.29
7.3.290.0030.00316.30
7.3.280.0080.00716.34
7.3.270.0170.00717.40
7.3.260.0100.00716.46
7.3.250.0100.00816.34
7.3.240.0080.00916.53
7.3.230.0130.00316.39
7.3.210.0090.00916.27
7.3.200.0070.01116.64
7.3.190.0130.00316.31
7.3.180.0100.01016.30
7.3.170.0060.01016.57
7.3.160.0060.01116.23
7.2.330.0060.01216.67
7.2.320.0150.00316.59
7.2.310.0090.01016.66
7.2.300.0120.00616.73
7.2.290.0090.00916.48
7.2.120.0110.00016.55
7.2.110.0060.00616.58
7.2.100.0060.00616.56
7.2.90.0000.01016.72
7.2.80.0030.01016.73
7.2.70.0080.00317.13
7.2.60.0040.01116.95
7.2.50.0030.00616.90
7.2.40.0000.01517.01
7.2.30.0030.01016.98
7.2.20.0040.01116.94
7.2.10.0030.00916.71
7.2.00.0050.01118.14
7.1.240.0040.01115.76
7.1.230.0040.00815.69
7.1.220.0050.00515.53
7.1.210.0070.00415.77
7.1.200.0070.00715.60
7.1.190.0040.00415.66
7.1.180.0070.00415.66
7.1.170.0030.01015.73
7.1.160.0030.00615.59
7.1.150.0030.01215.66
7.1.140.0080.00415.67
7.1.130.0070.00715.55
7.1.120.0060.00315.84
7.1.110.0060.00615.78
7.1.100.0030.01016.83
7.1.90.0030.00915.71
7.1.80.0100.00315.47
7.1.70.0070.00516.40
7.1.60.0080.01017.49
7.1.50.0140.01125.20
7.1.40.0100.00315.65
7.1.30.0060.00915.75
7.1.20.0000.01115.81
7.1.10.0090.00615.62
7.1.00.0050.04019.00
7.0.320.0060.00615.49
7.0.310.0100.00315.39
7.0.300.0000.01015.39
7.0.290.0060.00915.34
7.0.280.0090.00315.42
7.0.270.0080.00315.20
7.0.260.0060.00615.48
7.0.250.0060.00315.49
7.0.240.0040.00415.46
7.0.230.0090.00615.50
7.0.220.0000.01415.25
7.0.210.0000.01115.20
7.0.200.0170.00515.01
7.0.190.0030.01015.34
7.0.180.0030.00315.28
7.0.170.0030.01015.36
7.0.160.0090.00315.39
7.0.150.0030.00915.41
7.0.140.0060.00715.14
7.0.130.0030.00515.35
7.0.120.0070.00615.40
7.0.110.0110.00015.21
7.0.100.0080.00015.16
7.0.90.0050.00515.38
7.0.80.0070.00715.27
7.0.70.0090.00315.57
7.0.60.0050.02317.75
7.0.50.0020.02616.52
7.0.40.0050.03016.72
7.0.30.0170.04216.94
7.0.20.0100.02516.76
7.0.10.0030.03616.73
7.0.00.0090.02716.87
5.6.380.0060.00614.07
5.6.370.0040.00414.20
5.6.360.0080.00414.50
5.6.350.0030.01014.05
5.6.340.0090.00314.03
5.6.330.0130.00314.11
5.6.320.0060.00314.04
5.6.310.0060.00314.12
5.6.300.0090.00314.00
5.6.290.0050.00514.32
5.6.280.0070.02617.67
5.6.270.0120.00314.22
5.6.260.0030.01014.20
5.6.250.0030.01014.13
5.6.240.0060.00614.00
5.6.230.0000.01414.09
5.6.220.0060.00914.29
5.6.210.0080.04317.47
5.6.200.0120.02416.10
5.6.190.0070.02517.29
5.6.180.0350.03317.23
5.6.170.0150.02017.39
5.6.160.0100.04017.35
5.6.150.0100.02316.17
5.6.140.0030.04516.33
5.6.130.0070.02316.10
5.6.120.0100.04217.56
5.6.110.0020.02717.57
5.6.100.0100.02317.52
5.6.90.0080.04417.49
5.6.80.0070.04017.20
5.6.70.0110.00313.97
5.6.60.0040.01113.96
5.6.50.0030.00513.96
5.6.40.0000.01414.05
5.6.30.0080.00414.05
5.6.20.0090.00614.25
5.6.10.0090.00613.76
5.6.00.0040.00414.04
5.5.380.0090.00310.84
5.5.370.0060.00610.71
5.5.360.0050.00210.83
5.5.350.1790.02415.66
5.5.340.0030.04514.57
5.5.330.0070.02715.66
5.5.320.0170.02715.69
5.5.310.0150.04015.42
5.5.300.0050.03314.54
5.5.290.0050.02114.55
5.5.280.0080.04015.70
5.5.270.0090.04515.82
5.5.260.0080.03015.96
5.5.250.0050.03215.81
5.5.240.0130.03715.63
5.5.230.0110.00010.92
5.5.220.0040.00810.85
5.5.210.0040.00710.84
5.5.200.0000.00610.77
5.5.190.0030.00611.04
5.5.180.0080.00311.07
5.5.170.0070.00713.60
5.5.160.0030.00610.90
5.5.150.0070.00310.84
5.5.140.0040.00810.72
5.5.130.0030.00610.47
5.5.120.0040.00810.66
5.5.110.0000.00710.94
5.5.100.0080.00410.71
5.5.90.0090.00310.66
5.5.80.0030.00611.08
5.5.70.0000.01111.02
5.5.60.0000.01010.43
5.5.50.0030.00311.02
5.5.40.0030.00810.66
5.5.30.0050.00510.73
5.5.20.0050.00310.78
5.5.10.0040.00410.91
5.5.00.0030.00610.95

preferences:
61.44 ms | 401 KiB | 5 Q