3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestField{ public function __construct(){ echo "TestField constructed"; } } $field = 'test'; $fieldfield = $field . 'field'; new $fieldfield();

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.01018.31
8.3.50.0090.00617.82
8.3.40.0070.00718.79
8.3.30.0120.00318.93
8.3.20.0080.00020.27
8.3.10.0030.00623.70
8.3.00.0000.00819.16
8.2.180.0140.00316.63
8.2.170.0120.00922.96
8.2.160.0000.01322.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00020.85
8.2.110.0050.00520.35
8.2.100.0040.00817.72
8.2.90.0090.00019.23
8.2.80.0040.00417.97
8.2.70.0070.00317.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00418.13
8.2.20.0030.00517.64
8.2.10.0040.00417.98
8.2.00.0070.00017.64
8.1.280.0090.00625.92
8.1.270.0060.00318.86
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00422.52
8.1.230.0060.00620.92
8.1.220.0000.00818.77
8.1.210.0000.00818.95
8.1.200.0030.00617.35
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0000.00918.50
8.1.160.0040.00421.98
8.1.150.0040.00418.88
8.1.140.0000.00717.29
8.1.130.0040.00417.76
8.1.120.0000.00717.28
8.1.110.0040.00417.36
8.1.100.0000.00717.27
8.1.90.0000.00717.27
8.1.80.0000.00717.37
8.1.70.0030.00317.34
8.1.60.0000.00817.52
8.1.50.0030.00617.54
8.1.40.0030.00617.50
8.1.30.0030.00617.64
8.1.20.0040.00417.62
8.1.10.0000.00817.60
8.1.00.0050.00217.48
8.0.300.0070.00019.98
8.0.290.0070.00016.63
8.0.280.0030.00318.39
8.0.270.0030.00317.25
8.0.260.0030.00317.16
8.0.250.0030.00316.84
8.0.240.0040.00416.93
8.0.230.0040.00416.83
8.0.220.0000.00716.93
8.0.210.0030.00316.79
8.0.200.0060.00016.98
8.0.190.0050.00316.89
8.0.180.0080.00016.96
8.0.170.0040.00416.79
8.0.160.0030.00316.91
8.0.150.0070.00016.79
8.0.140.0040.00416.90
8.0.130.0000.00613.19
8.0.120.0080.00016.85
8.0.110.0000.00716.84
8.0.100.0030.00516.84
8.0.90.0000.00716.84
8.0.80.0040.01916.85
8.0.70.0050.00216.68
8.0.60.0040.00416.78
8.0.50.0000.00716.94
8.0.30.0110.01017.11
8.0.20.0140.00617.40
8.0.10.0000.00716.94
8.0.00.0100.01016.65
7.4.330.0000.00515.06
7.4.320.0030.00316.33
7.4.300.0070.00016.34
7.4.290.0070.00016.64
7.4.280.0040.00416.48
7.4.270.0030.00316.50
7.4.260.0030.00316.43
7.4.250.0040.00416.52
7.4.240.0000.00716.58
7.4.230.0050.00216.53
7.4.220.0080.01216.45
7.4.210.0140.01816.53
7.4.200.0040.00416.57
7.4.160.0120.00316.46
7.4.150.0110.00717.40
7.4.140.0080.01117.86
7.4.130.0070.01016.60
7.4.120.0100.00816.40
7.4.110.0100.00716.31
7.4.100.0140.00716.40
7.4.90.0120.00616.34
7.4.80.0100.01219.39
7.4.70.0080.00816.57
7.4.60.0130.00316.62
7.4.50.0000.00616.47
7.4.40.0100.00616.50
7.4.30.0120.01216.42
7.4.00.0070.00715.13
7.3.330.0060.00013.16
7.3.320.0030.00313.18
7.3.310.0000.00716.42
7.3.300.0000.00716.23
7.3.290.0060.00916.30
7.3.280.0060.01216.25
7.3.270.0060.01217.40
7.3.260.0030.01316.52
7.3.250.0060.01416.46
7.3.240.0130.00316.40
7.3.230.0130.00316.55
7.3.210.0090.01516.59
7.3.200.0030.01319.39
7.3.190.0060.00916.47
7.3.180.0120.00916.61
7.3.170.0060.01216.39
7.3.160.0130.00316.23
7.2.330.0080.00816.59
7.2.320.0080.00916.41
7.2.310.0070.01116.59
7.2.300.0040.01216.57
7.2.290.0090.01316.25
7.2.80.0000.01016.49
7.2.60.0030.00716.71
7.2.00.0040.01119.15
7.1.200.0060.00915.82
7.1.100.6220.01015.41
7.1.70.0070.01017.22
7.1.60.0070.00717.09
7.1.50.0100.01416.89
7.1.00.0000.08022.51
7.0.200.0030.01316.68
7.0.140.0030.05721.92
7.0.60.0030.07719.88
7.0.50.0100.07717.73
7.0.40.0030.04320.08
7.0.30.0600.06320.07
7.0.20.0300.07720.33
7.0.10.0100.08720.23
7.0.00.0030.09320.36
5.6.280.0070.07321.10
5.6.210.0070.05720.55
5.6.200.0000.08018.29
5.6.190.0030.09020.77
5.6.180.4170.03720.41
5.6.170.0230.09320.45
5.6.160.0030.04320.48
5.6.150.0000.08018.19
5.6.140.0070.03718.24
5.6.130.0170.06718.28
5.6.120.0030.08321.14
5.6.110.0100.08321.03
5.6.100.0100.08721.07
5.6.90.0100.07720.97
5.6.80.0130.06020.49
5.6.70.0330.06720.28
5.5.350.0070.07020.37
5.5.340.0200.06018.07
5.5.330.0100.04720.57
5.5.320.0330.07320.52
5.5.310.0200.07320.21
5.5.300.0100.07018.04
5.5.290.0130.04317.99
5.5.280.0070.08320.69
5.5.270.0130.05020.87
5.5.260.0070.07020.64
5.5.250.0070.04320.68
5.5.240.0100.08020.13
5.4.450.0770.05019.58
5.4.440.0730.06319.23
5.4.430.0830.04319.63
5.4.420.1030.03319.23
5.4.410.0730.03319.53
5.4.400.0870.06019.26
5.4.390.0370.05018.86
5.4.380.0230.06718.75
5.4.370.0370.08318.76
5.4.360.0100.06718.80
5.4.350.0200.05718.74
5.4.340.0330.06018.78
5.4.320.0230.06018.78
5.4.310.0300.08018.47
5.4.300.0370.07018.74
5.4.290.0470.07018.84
5.4.280.0270.05318.46
5.4.270.0200.06018.60
5.4.260.0230.05318.69
5.4.250.0330.05318.50
5.4.240.0300.07318.85
5.4.230.0330.04718.55
5.4.220.0370.04018.73
5.4.210.0370.08018.73
5.4.200.0300.05016.59
5.4.190.0200.05318.67
5.4.180.0270.05318.79
5.4.170.0200.07018.48
5.4.160.0230.05318.74
5.4.150.0230.05018.81
5.4.140.0230.04716.43
5.4.130.0170.05316.33
5.4.120.0270.05016.27
5.4.110.0330.04016.23
5.4.100.0230.05016.21
5.4.90.0170.05716.25
5.4.80.0300.04716.25
5.4.70.0370.06016.23
5.4.60.0270.04716.30
5.4.50.0230.04716.18
5.4.40.0230.05016.25
5.4.30.0200.05016.28
5.4.20.0170.05716.24
5.4.10.0230.05016.26
5.4.00.0200.05315.78
5.3.290.0200.06014.82
5.3.280.0230.05314.57
5.3.270.0270.05714.80
5.3.260.0230.07014.77
5.3.250.0300.04714.73
5.3.240.0170.06014.78
5.3.230.0430.06014.59
5.3.220.0200.06014.60
5.3.210.0230.05714.66
5.3.200.0170.06314.66
5.3.190.0230.05014.74
5.3.180.0170.05714.78
5.3.170.0230.05014.77
5.3.160.0170.05714.68
5.3.150.0270.06714.55
5.3.140.0300.06714.69
5.3.130.0230.06314.52
5.3.120.0200.06314.65
5.3.110.0300.07014.65
5.3.100.0170.06014.16
5.3.90.0100.06014.01
5.3.80.0200.05014.24
5.3.70.0170.06014.01
5.3.60.0230.05314.10
5.3.50.0130.06013.98
5.3.40.0330.04013.92
5.3.30.0200.05314.07
5.3.20.0200.05013.80
5.3.10.0130.05313.63
5.3.00.0170.05313.66
5.2.170.0100.04711.27
5.2.160.0130.04711.18
5.2.150.0100.04711.26
5.2.140.0130.04311.36
5.2.130.0070.04711.11
5.2.120.0230.03011.33
5.2.110.0200.04011.32
5.2.100.0070.04711.09
5.2.90.0170.04011.13
5.2.80.0130.04311.19
5.2.70.0100.05011.20
5.2.60.0170.04311.09
5.2.50.0130.04311.16
5.2.40.0170.03711.12
5.2.30.0270.03311.09
5.2.20.0200.04011.06
5.2.10.0070.04711.07
5.2.00.0130.04310.91
5.1.60.0200.04010.17
5.1.50.0100.03710.03
5.1.40.0130.0379.97
5.1.30.0200.03710.43
5.1.20.0170.03310.47
5.1.10.0170.03710.20
5.1.00.0100.03710.16
5.0.50.0070.0308.57
5.0.40.0200.0238.40
5.0.30.0130.0408.32
5.0.20.0030.0338.30
5.0.10.0130.0238.36
5.0.00.0070.0478.30
4.4.90.0070.0275.89
4.4.80.0100.0235.88
4.4.70.0100.0205.88
4.4.60.0100.0205.88
4.4.50.0130.0175.90
4.4.40.0170.0375.89
4.4.30.0130.0175.96
4.4.20.0130.0176.04
4.4.10.0070.0235.93
4.4.00.0100.0336.02
4.3.110.0030.0275.90
4.3.100.0100.0205.84
4.3.90.0130.0205.82
4.3.80.0070.0335.80
4.3.70.0070.0205.87
4.3.60.0070.0205.78
4.3.50.0100.0235.91
4.3.40.0100.0335.76
4.3.30.0070.0205.40
4.3.20.0030.0305.40
4.3.10.0070.0205.40
4.3.00.0130.0236.83

preferences:
41.77 ms | 400 KiB | 5 Q