3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); class ClassWithTypedProperty { public int $number; public function __construct() { $this->number = 1234; } public function __set($name, $value) { printf("UNEXPECTED SETTING OF %s\n", $name); } } printf("\n--- Typed Property ---\n"); var_dump(new ClassWithTypedProperty());

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.4.130.0110.00717.80
8.4.120.0070.00224.14
8.4.110.0090.01122.35
8.4.100.0140.00517.69
8.4.90.0120.00818.86
8.4.80.0130.00719.45
8.4.70.0090.01117.81
8.4.60.0040.00418.72
8.4.50.0110.00619.41
8.4.40.0050.00319.60
8.4.30.0100.01018.39
8.4.20.0130.00618.68
8.4.10.0060.00317.43
8.3.260.0130.00616.36
8.3.250.0130.00618.73
8.3.240.0120.00717.24
8.3.230.0110.00716.72
8.3.220.0130.00617.21
8.3.210.0040.00518.61
8.3.200.0130.00616.34
8.3.190.0110.00718.80
8.3.180.0100.00916.31
8.3.170.0150.00316.74
8.3.160.0060.01218.36
8.3.150.0040.00417.18
8.3.140.0000.00816.63
8.3.130.0040.00418.30
8.3.120.0080.01120.66
8.3.110.0030.00616.53
8.3.100.0060.00318.22
8.3.90.0050.00318.23
8.3.80.0040.00717.97
8.3.70.0110.00416.63
8.3.60.0120.00916.36
8.3.50.0060.01318.34
8.3.40.0060.00918.79
8.3.30.0070.00718.52
8.3.20.0050.00320.54
8.3.10.0040.00423.65
8.3.00.0040.00422.51
8.2.290.0090.00920.35
8.2.280.0080.00818.48
8.2.270.0140.00416.59
8.2.260.0080.00019.11
8.2.250.0040.00416.67
8.2.240.0100.01016.98
8.2.230.0080.00320.94
8.2.220.0000.00824.06
8.2.210.0080.00626.77
8.2.200.0030.00618.14
8.2.190.0100.01016.63
8.2.180.0060.00918.50
8.2.170.0120.00622.96
8.2.160.0090.00620.53
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0060.00320.97
8.2.100.0100.00617.77
8.2.90.0050.00317.75
8.2.80.0050.00317.97
8.2.70.0000.00817.91
8.2.60.0000.00718.03
8.2.50.0000.00818.10
8.2.40.0080.00021.07
8.2.30.0040.00419.19
8.2.20.0050.00217.87
8.2.10.0040.00419.11
8.2.00.0050.00219.09
8.1.330.0120.00921.82
8.1.320.0120.00816.16
8.1.310.0070.00316.68
8.1.300.0060.00316.37
8.1.290.0000.00918.88
8.1.280.0120.00625.92
8.1.270.0030.00622.04
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01023.96
8.1.230.0100.00018.91
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00417.25
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0030.00618.54
8.1.160.0070.00018.88
8.1.150.0000.00718.93
8.1.140.0040.00420.86
8.1.130.0040.00220.14
8.1.120.0000.00717.46
8.1.110.0040.00417.36
8.1.100.0000.00717.37
8.1.90.0000.00717.35
8.1.80.0040.00417.43
8.1.70.0070.00317.41
8.1.60.0030.00617.60
8.1.50.0000.01017.41
8.1.40.0030.00517.52
8.1.30.0040.00417.49
8.1.20.0030.00717.67
8.1.10.0000.00817.45
8.1.00.0040.00417.43
8.0.300.0000.00818.77
8.0.290.0080.00016.63
8.0.280.0000.00718.31
8.0.270.0040.00216.75
8.0.260.0060.00020.23
8.0.250.0040.00416.84
8.0.240.0050.00316.89
8.0.230.0000.00716.81
8.0.220.0000.00716.83
8.0.210.0000.00716.80
8.0.200.0070.00016.77
8.0.190.0040.00416.91
8.0.180.0030.00516.91
8.0.170.0060.00316.74
8.0.160.0000.00716.84
8.0.150.0000.00916.81
8.0.140.0040.00416.78
8.0.130.0000.00613.21
8.0.120.0000.00716.69
8.0.110.0040.00416.90
8.0.100.0030.00416.89
8.0.90.0040.00416.78
8.0.80.0110.00616.81
8.0.70.0000.00816.73
8.0.60.0050.00216.86
8.0.50.0050.00216.88
8.0.30.0090.00616.83
8.0.20.0150.00617.02
8.0.10.0000.00916.87
8.0.00.0140.00616.80
7.4.330.0050.00016.73
7.4.320.0000.00716.43
7.4.300.0040.00416.65
7.4.290.0030.00616.60
7.4.280.0040.00416.48
7.4.270.0000.00716.61
7.4.260.0000.00513.30
7.4.250.0000.00716.52
7.4.240.0020.00516.51
7.4.230.0000.00816.40
7.4.220.0060.00116.51
7.4.210.0100.00716.60
7.4.200.0070.00016.39
7.4.140.0130.00517.86
7.4.130.0090.00916.34
7.4.120.0110.01416.43
7.4.110.0160.00016.48
7.4.100.0070.01016.39
7.4.90.0140.00416.52
7.4.80.0130.01019.39
7.4.70.0130.00316.52
7.4.60.0090.00916.42
7.4.50.0030.01216.29
7.4.40.0160.00316.63
7.3.330.0000.00616.13
7.3.320.0050.00013.07
7.3.310.0000.00716.01
7.3.300.0030.00316.14
7.3.290.0000.00816.20
7.3.280.0110.00416.27
7.3.260.0060.01016.29
7.3.240.0090.00916.34
7.3.230.0060.01516.36
7.3.210.0150.00316.16
7.3.200.0060.01116.14
7.3.190.0100.00616.26
7.3.180.0030.01316.25
7.3.170.0060.01016.16
7.3.160.0130.00316.19
7.3.90.0070.00614.47
7.3.80.0050.00914.56
7.3.70.0040.01114.58
7.3.60.0060.01014.54
7.3.50.0100.00714.62
7.3.40.0040.01214.49
7.3.30.0050.00814.58
7.3.20.0070.00716.57
7.3.10.0070.00716.46
7.3.00.0130.00516.50
7.2.330.0120.00616.26
7.2.320.0090.00916.51
7.2.310.0150.00616.34
7.2.300.0060.00916.26
7.2.290.0080.00816.49
7.2.220.0080.00914.61
7.2.210.0080.00614.63
7.2.200.0060.01014.70
7.2.190.0080.00814.68
7.2.180.0100.00714.55
7.2.170.0130.00414.65
7.2.160.0050.01014.60
7.2.150.0100.00516.69
7.2.140.0080.00816.55
7.2.130.0080.01016.55
7.2.120.0100.00516.49
7.2.110.0050.00916.65
7.2.100.0110.00616.58
7.2.90.0130.00516.54
7.2.80.0090.00716.63
7.2.70.0080.00816.64
7.2.60.0100.00616.62
7.2.50.0090.00516.72
7.2.40.0040.01116.65
7.2.30.0100.00416.46
7.2.20.0060.00916.67
7.2.10.0140.01216.76
7.2.00.0080.01016.54
7.1.320.0070.00815.26
7.1.310.0080.01015.48
7.1.300.0110.00615.56
7.1.290.0120.00415.56
7.1.280.0040.01115.49
7.1.270.0050.00815.45
7.1.260.0090.00815.51
7.1.250.0080.00715.47

preferences:
67.36 ms | 403 KiB | 5 Q